RFR: 8273454: C2: Transform (-a)*(-b) into a*b [v4]
Zhengyu Gu
zgu at openjdk.java.net
Wed Sep 15 15:48:53 UTC 2021
On Tue, 14 Sep 2021 06:58:57 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:
>> The default CompileThreshold is 10K when tiered compilation is disabled, which is the case here, so there is no risk.
>
> But why don't you compute `expected` as `a * b`?
I would prefer to keep as it is to match testxxx() functions. I think it articulates that JIT-ed result matches interpreter's.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5403
More information about the hotspot-compiler-dev
mailing list