RFR: 8282204: Use lea instructions for arithmetic operations on x86_64 [v2]
Jie Fu
jiefu at openjdk.java.net
Wed Feb 23 13:57:50 UTC 2022
On Tue, 22 Feb 2022 17:15:33 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
>>
>> decoder, format
>
> What benefits you have with these changes in real world?
> It could be fine to use `lea` for merging several instruction, as you did.
> But last time I was told that `lea` instruction has larger latency than shift instruction because it uses addressing module in CPU. I am not sure it is fine to replace it.
> Also why you removed match rule which moved result of `Add` to different register?
> @vnkozlov Given `lea` is a really efficient instruction, merging multiple ones into it offers a lot of benefits and all other compilers do so.
So any benchmark to show the perf improvement?
-------------
PR: https://git.openjdk.java.net/jdk/pull/7560
More information about the hotspot-compiler-dev
mailing list