aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2025-05-13 10:33:38 +0100
committerGitHub <noreply@github.com>2025-05-13 10:33:38 +0100
commit671cef029fc13ea652ca6605b6b508c0d7332fa9 (patch)
tree947d934d33a26104b1c74d15a0b1e7ca6feaa2a7 /clang/lib/CodeGen/ModuleBuilder.cpp
parent69f4e6009318ab2e0cd852a503f876e839b615fd (diff)
downloadllvm-671cef029fc13ea652ca6605b6b508c0d7332fa9.zip
llvm-671cef029fc13ea652ca6605b6b508c0d7332fa9.tar.gz
llvm-671cef029fc13ea652ca6605b6b508c0d7332fa9.tar.bz2
[AggressiveInstcombine] Fold away shift in or reduction chain. (#137875)
If we have `icmp eq or(a, shl(b)), 0` then the shift can be removed so long as it is nuw or nsw. It is still comparing that some bits are non-zero. https://alive2.llvm.org/ce/z/nhrBVX. This is also true of ne, and true for longer or chains.
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions