RFR: 8291336: Add ideal rule to convert floating point multiply by 2 into addition [v3]

SuperCoder79 duke at openjdk.org
Thu Aug 4 15:05:58 UTC 2022


On Thu, 4 Aug 2022 08:58:38 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> SuperCoder79 has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Add bug tag to IR test
>
> src/hotspot/share/opto/mulnode.cpp line 443:
> 
>> 441:   // x * 2 -> x + x
>> 442:   if (t2 != NULL) {
>> 443:     if (t2->getf() == 2) {
> 
> Suggestion:
> 
>   if (t2 != NULL && t2->getf() == 2) {

Completed, thanks!

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

PR: https://git.openjdk.org/jdk/pull/9642


More information about the hotspot-compiler-dev mailing list