RFR: 8373480: Optimize multiplication by constant multiplier using LEA instructions [v6]

Jatin Bhateja jbhateja at openjdk.org
Fri Jan 9 14:06:42 UTC 2026


On Fri, 9 Jan 2026 12:32:39 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> I didn't follow it, I don't intend to invoke Run in StandAlone Mode.
>
> Let me clarify:
> - Your `@Run` gets invoked many times, eventually it will compile.
> - You invoke the `testMultBy`, and eventually it will get compiled.
> - Now, both the multiplication in the test, and the run method are compiled. If there was a bug, it would be the same wrong result in the test and run, verification would pass, and we would not catch the bug.

Got it, fixed!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28759#discussion_r2676304297


More information about the hotspot-compiler-dev mailing list