Commit f7b5f0c
committed
[DAG] Fold (and X, (rot (not Y), Z)) -> (and X, (not (rot Y, Z)))
On ANDNOT capable targets we can always do this profitably, without ANDNOT we only attempt this if we don't introduce an additional NOT
Followup to llvm#1125471 parent 0394888 commit f7b5f0c
File tree
2 files changed
+314
-160
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/X86
2 files changed
+314
-160
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7355 | 7355 | | |
7356 | 7356 | | |
7357 | 7357 | | |
7358 | | - | |
| 7358 | + | |
7359 | 7359 | | |
7360 | 7360 | | |
7361 | 7361 | | |
| |||
7364 | 7364 | | |
7365 | 7365 | | |
7366 | 7366 | | |
| 7367 | + | |
| 7368 | + | |
| 7369 | + | |
| 7370 | + | |
| 7371 | + | |
| 7372 | + | |
| 7373 | + | |
| 7374 | + | |
| 7375 | + | |
7367 | 7376 | | |
7368 | 7377 | | |
7369 | 7378 | | |
| |||
0 commit comments