RFR: 8261022: Fix incorrect result of Math.abs() with char type [v2]

Pengfei Li pli at openjdk.java.net
Fri Feb 5 08:26:57 UTC 2021


On Fri, 5 Feb 2021 07:32:38 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Pengfei Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Address review comments
>
> src/hotspot/share/opto/superword.cpp line 3235:
> 
>> 3233:                 vt = velt_type(load);
>> 3234:               } else if (in->Opcode() != Op_LShiftI) {
>> 3235:                 // Widen type to int to avoid the creation of vector nodes. Note
> 
> `in->Opcode()` can be replaced by `op`

Fixed, thanks!

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

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


More information about the hotspot-compiler-dev mailing list