This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about non-compatible optimization (was: Re: patch to bring java vtables closer to g++ abi conformance)


>>>>> "Tuomas" == Tuomas Leikola <tuomas.leikola@digia.com> writes:

Tuomas> this leads to another issue, is it planned that gcj would
Tuomas> support "closed world" optimizations?

As far as I know nobody is working on it.  I think it would be a
useful addition.

Tuomas> but compiler can "notice" many cases like this, like

Tuomas> Vector a = new Vector();
Tuomas> while (a.size() < 10)
Tuomas> {
Tuomas>     a.add("");
Tuomas> }
Tuomas> the dynamic invocations could be avoided.

Type-based optimizations like this are one thing I hope to get out of
the `ast' (tree-based optimization) work being done.  Another
optimization in this category is removing redundant cast checks.  I've
looked at the ast code a little, but I haven't done any hacking on it
yet :-(

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]