Commit f811a25
[DAG] Fold (and X, (bswap/bitreverse (not Y))) -> (and X, (not (bswap/bitreverse Y))) (llvm#112547)
On ANDNOT capable targets we can always do this profitably, without ANDNOT we only attempt this if we don't introduce an additional NOT
Fixes llvm#1124251 parent 3a972dc commit f811a25
File tree
2 files changed
+505
-189
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+505
-189
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7353 | 7353 | | |
7354 | 7354 | | |
7355 | 7355 | | |
| 7356 | + | |
| 7357 | + | |
| 7358 | + | |
| 7359 | + | |
| 7360 | + | |
| 7361 | + | |
| 7362 | + | |
| 7363 | + | |
| 7364 | + | |
| 7365 | + | |
| 7366 | + | |
7356 | 7367 | | |
7357 | 7368 | | |
7358 | 7369 | | |
| |||
0 commit comments