Commit f5c1b52
[PowerPC] Avoid working on deleted node in ext bool trunc combine (llvm#160050)
This code was already creating HandleSDNodes to handle the case where a
node gets replaced with an equivalent node. However, the code before the
handles are created also performs RAUW operations, which can end up
CSEing and deleting nodes.
Fix this issue by moving the handle creation earlier.
Fixes llvm#160040.
(cherry picked from commit 8b824f3)1 parent db70369 commit f5c1b52
File tree
2 files changed
+30
-4
lines changed- llvm
- lib/Target/PowerPC
- test/CodeGen/PowerPC
2 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15327 | 15327 | | |
15328 | 15328 | | |
15329 | 15329 | | |
| 15330 | + | |
| 15331 | + | |
| 15332 | + | |
| 15333 | + | |
| 15334 | + | |
| 15335 | + | |
15330 | 15336 | | |
15331 | 15337 | | |
15332 | 15338 | | |
| |||
15350 | 15356 | | |
15351 | 15357 | | |
15352 | 15358 | | |
15353 | | - | |
15354 | | - | |
15355 | | - | |
15356 | | - | |
15357 | 15359 | | |
15358 | 15360 | | |
15359 | 15361 | | |
| |||
| 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 | + | |
| 24 | + | |
0 commit comments