On Thu, 24 Feb 2022 19:04:37 GMT, Vamsi Parasa <d...@openjdk.java.net> wrote:

>> src/hotspot/share/opto/divnode.cpp line 881:
>> 
>>> 879:   return (phase->type( in(2) )->higher_equal(TypeLong::ONE)) ? in(1) : 
>>> this;
>>> 880: }
>>> 881: 
>>> //------------------------------Value------------------------------------------
>> 
>> Ideal transform to replace unsigned divide by cheaper logical right shift 
>> instruction if divisor is POW will be useful.
>
> Thanks for suggesting the enhancement. This enhancement will be implemented 
> as a part of https://bugs.openjdk.java.net/browse/JDK-8282365

You do need `Ideal()` methods at least to check for dead code.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7572

Reply via email to