Commit 8b824f3
authored
[PowerPC] Avoid working on deleted node in ext bool trunc combine (#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 #160040.1 parent 89d79b6 commit 8b824f3
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 | |
|---|---|---|---|
| |||
15411 | 15411 | | |
15412 | 15412 | | |
15413 | 15413 | | |
| 15414 | + | |
| 15415 | + | |
| 15416 | + | |
| 15417 | + | |
| 15418 | + | |
| 15419 | + | |
15414 | 15420 | | |
15415 | 15421 | | |
15416 | 15422 | | |
| |||
15434 | 15440 | | |
15435 | 15441 | | |
15436 | 15442 | | |
15437 | | - | |
15438 | | - | |
15439 | | - | |
15440 | | - | |
15441 | 15443 | | |
15442 | 15444 | | |
15443 | 15445 | | |
| |||
| 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