This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Help with performance issues.
>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:
Anthony> It seems like gcj should be able to replace Math.abs() with
Anthony> __builtin_abs in this case. Does anybody think otherwise?
I think we could consider doing this for any final method with fixed
semantics. For instance, anything in java.lang.Math (taking strictfp
concerns into account, of course). If other final methods are
important for performance, we could inline those too. For instance,
there might be situations where inlining System.arraycopy makes sense.
Implementing this probably wouldn't be very hard. It would make a
nice project for someone wanting to do some gcj front-end hacking.
Tom