RFR: 8322077: Add Ideal transformation: (~a) | (~b) => ~(a & b) [v7]
Zhiqiang Zang
duke at openjdk.org
Sat Jan 6 00:20:45 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#L1617C28-L1617C28); 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 with a new target base due to a merge or a rebase. The pull request now contains seven commits:
- remove unused code from tests.
- update the copyright dates.
- address comments.
- untabify.
- use common helpful functions.
- include bug id.
- include new optimization and tests.
-------------
Changes: https://git.openjdk.org/jdk/pull/16334/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16334&range=06
Stats: 151 lines in 3 files changed: 151 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/16334.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16334/head:pull/16334
PR: https://git.openjdk.org/jdk/pull/16334
More information about the hotspot-compiler-dev
mailing list