RFR: 8278114: New addnode ideal optimization: converting "x + x" into "x << 1" [v8]
Zhiqiang Zang
duke at openjdk.java.net
Sun Dec 19 01:46:06 UTC 2021
> 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:
clean microbenchmark.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/6675/files
- new: https://git.openjdk.java.net/jdk/pull/6675/files/16580b27..2bb824d6
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=07
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=06-07
Stats: 34 lines in 1 file changed: 0 ins; 24 del; 10 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