diff options
| author | David Green <david.green@arm.com> | 2025-05-13 10:33:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-13 10:33:38 +0100 |
| commit | 671cef029fc13ea652ca6605b6b508c0d7332fa9 (patch) | |
| tree | 947d934d33a26104b1c74d15a0b1e7ca6feaa2a7 /clang/lib/CodeGen/ModuleBuilder.cpp | |
| parent | 69f4e6009318ab2e0cd852a503f876e839b615fd (diff) | |
| download | llvm-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
