RFR: 8322589: Add Ideal transformation: (~a) & (~b) => ~(a | b) [v3]
Zhiqiang Zang
duke at openjdk.org
Fri Jan 5 20:45:41 UTC 2024
> Hello,
>
> `(~a) & (~b) => ~(a | b)` is a widely seen pattern, for example it is implemented for LLVM [here](https://github.com/llvm/llvm-project/blob/397f1ce9efb4eea1ee10fe4833f733b8c7abd878/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp#L1616C28-L1616C28); however it is missing in current implementation of hotspot. This pull request adds this transformation and associated tests.
>
> Thanks.
Zhiqiang Zang has updated the pull request incrementally with one additional commit since the last revision:
address comments.
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/16333/files
- new: https://git.openjdk.org/jdk/pull/16333/files/5072eb14..3b95720a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=16333&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=16333&range=01-02
Stats: 9 lines in 3 files changed: 2 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk/pull/16333.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16333/head:pull/16333
PR: https://git.openjdk.org/jdk/pull/16333
More information about the hotspot-compiler-dev
mailing list