A simple optimization proposal
rednaxelafx at gmail.com
Fri Feb 14 08:59:33 PST 2014
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev