Commit 10e8258
committed
[InstCombine] Treat identical operands as one in pushFreezeToPreventPoisonFromPropagating
To push a freeze through an instruction, only one operand may produce
poison. However, this currently fails for identical operands which are
treated as separate. This patch fixes this by treating them as a single
operand.1 parent 97d3aec commit 10e8258
File tree
2 files changed
+6
-4
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4902 | 4902 | | |
4903 | 4903 | | |
4904 | 4904 | | |
4905 | | - | |
| 4905 | + | |
| 4906 | + | |
| 4907 | + | |
4906 | 4908 | | |
4907 | 4909 | | |
4908 | 4910 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
0 commit comments