diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-10-12 17:18:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 17:18:12 +0800 |
commit | 8a7e5477982bcbfd46495e8e5e404fe43ad22d97 (patch) | |
tree | e2c7a4143c71040c8f80bbee37d150d66862964e /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2ceabf6bdc649f06a316f917a0f508fe10ea7faa (diff) | |
download | llvm-8a7e5477982bcbfd46495e8e5e404fe43ad22d97.zip llvm-8a7e5477982bcbfd46495e8e5e404fe43ad22d97.tar.gz llvm-8a7e5477982bcbfd46495e8e5e404fe43ad22d97.tar.bz2 |
[InstCombine] Canonicalize `(X +/- Y) & Y` into `~X & Y` when Y is a power of 2 (#67915)
This patch canonicalizes the pattern `(X +/- Y) & Y` into `~X & Y` when `Y` is a power of 2 or zero.
It will reduce the patterns to match in #67836 and exploit more optimization opportunities.
Alive2: https://alive2.llvm.org/ce/z/LBpvRF
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions