Commit de59d22
committed
[InstCombine] Support logical ops in foldAndOrOfICmpEqZeroAndICmp()
If the and/or is logical and one of the operands only occurs on the
RHS, we need to freeze it: https://alive2.llvm.org/ce/z/vuMuE_1 parent 004a70a commit de59d22
File tree
2 files changed
+22
-19
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+22
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2584 | 2584 | | |
2585 | 2585 | | |
2586 | 2586 | | |
2587 | | - | |
2588 | | - | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
2589 | 2590 | | |
2590 | 2591 | | |
2591 | 2592 | | |
| |||
2604 | 2605 | | |
2605 | 2606 | | |
2606 | 2607 | | |
| 2608 | + | |
| 2609 | + | |
2607 | 2610 | | |
2608 | 2611 | | |
2609 | 2612 | | |
| |||
2652 | 2655 | | |
2653 | 2656 | | |
2654 | 2657 | | |
2655 | | - | |
2656 | | - | |
2657 | | - | |
2658 | | - | |
2659 | | - | |
2660 | | - | |
2661 | | - | |
2662 | | - | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
2663 | 2666 | | |
2664 | 2667 | | |
2665 | 2668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2172 | 2172 | | |
2173 | 2173 | | |
2174 | 2174 | | |
2175 | | - | |
2176 | | - | |
2177 | | - | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
2178 | 2178 | | |
2179 | 2179 | | |
2180 | 2180 | | |
| |||
2306 | 2306 | | |
2307 | 2307 | | |
2308 | 2308 | | |
2309 | | - | |
2310 | | - | |
2311 | | - | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| |||
2418 | 2418 | | |
2419 | 2419 | | |
2420 | 2420 | | |
2421 | | - | |
2422 | | - | |
2423 | | - | |
| 2421 | + | |
| 2422 | + | |
| 2423 | + | |
2424 | 2424 | | |
2425 | 2425 | | |
2426 | 2426 | | |
| |||
0 commit comments