RFR: 8373480: Optimize multiplication by constant multiplier using LEA instructions [v6]
Jatin Bhateja
jbhateja at openjdk.org
Fri Jan 9 10:28:05 UTC 2026
On Thu, 8 Jan 2026 16:06:51 GMT, Emanuel Peter <epeter at openjdk.org> wrote:
>> Jatin Bhateja has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Extending micro and jtreg tests for memory patterns
>
> test/hotspot/jtreg/compiler/c2/TestConstantMultiplier.java line 102:
>
>> 100: private static void runMultBy#{multiplier}I() {
>> 101: int multiplicand = RANDOM.nextInt();
>> 102: Verify.checkEQ(#{multiplier} * multiplicand, testMultBy#{multiplier}I(multiplicand));
>
> I think that the `@Run` method also gets compiled, so probably both sides of the verification are compiled. Is that your intention? Probably not, right?
I didn't follow it, I don't intend to invoke Run in StandAlone Mode.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28759#discussion_r2675637149
More information about the hotspot-compiler-dev
mailing list