A simple optimization proposal (original) (raw)

Krystal Mok rednaxelafx at gmail.com
Fri Feb 14 08:59:33 PST 2014


Hi Martin,

Thanks a lot for your input.

On Fri, Feb 14, 2014 at 12:48 AM, Martin Grajcar <maaartinus at gmail.com>wrote:

Hi Kris,

just a short answer for now: At line 1229, I wonder why the immediate additions don't get normalized to e.g. using SubI exclusively (AddI doesn't cover const-var). This surely isn't something to be done now, just a general question of mine. You're right, (x - const) does get normalized to (x + -const), so we're good to just check AddI.

Maybe you could change in addition to (arraylength > 0) also (arraylength != 0) into (arraylength u> 0)?

I've added the pattern. Webrev updated in place again.

Thanks, Kris

Regards, Martin.

-------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20140214/e5c002c6/attachment.html



More information about the hotspot-compiler-dev mailing list