diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-02-05 05:38:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-05 05:38:04 +0800 |
commit | fad6375428807fad466a176688e8f450ec4cab44 (patch) | |
tree | 5c5884717346f3b22bd9801662d4fb3ee423db34 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 3c2807624d2006fa8aacf9c6441c9a3034a52b44 (diff) | |
download | llvm-fad6375428807fad466a176688e8f450ec4cab44.zip llvm-fad6375428807fad466a176688e8f450ec4cab44.tar.gz llvm-fad6375428807fad466a176688e8f450ec4cab44.tar.bz2 |
[InstCombine] Fold xor of bittests into bittest of xor'd value (#125676)
Motivating case:
https://github.com/llvm/llvm-project/blob/64927af52a3bedf2b20d6cdd98bb47d9bba630f9/llvm/lib/Analysis/ValueTracking.cpp#L8600-L8602
It is translated into `xor (X & 2) != 0, (Y & 2) != 0`.
Alive2: https://alive2.llvm.org/ce/z/dJehZ8
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions