RFR: 8278114: New addnode ideal optimization: converting "x + x" into "x << 1" [v5]
Zhiqiang Zang
duke at openjdk.java.net
Fri Dec 17 18:22:03 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.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/6675/files
- new: https://git.openjdk.java.net/jdk/pull/6675/files/257a38ab..1ecff961
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6675&range=03-04
Stats: 15 lines in 3 files changed: 0 ins; 15 del; 0 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