Commit 7392a54
authored
[InstCombine] Treat identical operands as one in pushFreezeToPreventPoisonFromPropagating (#145348)
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 9e5470e commit 7392a54
File tree
2 files changed
+20
-8
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4899 | 4899 | | |
4900 | 4900 | | |
4901 | 4901 | | |
4902 | | - | |
4903 | | - | |
4904 | | - | |
4905 | | - | |
| 4902 | + | |
| 4903 | + | |
| 4904 | + | |
| 4905 | + | |
| 4906 | + | |
4906 | 4907 | | |
4907 | 4908 | | |
4908 | | - | |
| 4909 | + | |
4909 | 4910 | | |
4910 | 4911 | | |
4911 | 4912 | | |
| |||
4917 | 4918 | | |
4918 | 4919 | | |
4919 | 4920 | | |
4920 | | - | |
4921 | | - | |
| 4921 | + | |
| 4922 | + | |
4922 | 4923 | | |
4923 | | - | |
| 4924 | + | |
4924 | 4925 | | |
4925 | 4926 | | |
4926 | 4927 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
0 commit comments