Commit 2cacf46
[X86][TargetLowering] Avoid deleting temporary nodes in
In the original case, the third call to `getCheaperNegatedExpression`
deletes the SDNode returned by the first call.
Similar to 74e6030, this patch uses
`HandleSDNodes` to prevent nodes from being deleted by subsequent calls.
Closes llvm#138944.
(cherry picked from commit 143cce7)getNegatedExpression (llvm#139029)1 parent f233430 commit 2cacf46
File tree
2 files changed
+31
-1
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54147 | 54147 | | |
54148 | 54148 | | |
54149 | 54149 | | |
| 54150 | + | |
| 54151 | + | |
| 54152 | + | |
| 54153 | + | |
54150 | 54154 | | |
54151 | 54155 | | |
54152 | 54156 | | |
54153 | | - | |
| 54157 | + | |
54154 | 54158 | | |
54155 | 54159 | | |
| 54160 | + | |
| 54161 | + | |
| 54162 | + | |
54156 | 54163 | | |
54157 | 54164 | | |
54158 | 54165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments