RFR: 8278114: New addnode ideal optimization: converting "x + x" into "x << 1" [v10]
Zhiqiang Zang
duke at openjdk.java.net
Tue Jan 4 20:51:56 UTC 2022
> A new ideal optimization can be introduced for addnode: converting "x + x" into "x << 1".
>
>
> // Convert "x + x" into "x << 1"
> if (in1 == in2) {
> return new LShiftINode(in1, phase->intcon(1));
> }
Zhiqiang Zang has updated the pull request incrementally with one additional commit since the last revision:
update comments.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/6675/files
- new: https://git.openjdk.java.net/jdk/pull/6675/files/306c95a3..941ced77
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=09
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=08-09
Stats: 6 lines in 2 files changed: 1 ins; 0 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/6675.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6675/head:pull/6675
PR: https://git.openjdk.java.net/jdk/pull/6675
More information about the hotspot-compiler-dev
mailing list