A simple optimization proposal
john.r.rose at oracle.com
Wed Feb 12 21:47:58 PST 2014
One point behind the bug report is to give a little reward to Java coders who write dominating tests that exclude a.length==0, as:
if (a.length == 0) goAway();
else return a[i & a.length-1];
Kris, can your patch do this? The logic in IfNode can probably elide the duplicate dominating test, if the right normalizations occur.
> On Feb 12, 2014, at 6:05 PM, Martin Grajcar <maaartinus at gmail.com> wrote:
> That's what I've meant with goAway. My point was the jump using already computed flags
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev