Commit ca1b92f
committed
[WIP][MachineLICM] Do not rely on hasSideEffect when handling impdefs
When hasSideEffect was set to 0 in the definition of LOADgotAUTH,
the MultiSource/Benchmarks/Ptrdist/ks/ks test from llvm-test-suite
started to crash. The issue was traced down to the MachineLICM pass
placing LOADgotAUTH right after an unrelated copy to x16 like this:
renamable $x16 = COPY renamable $x12
renamable $x20 = LOADgotAUTH target-flags(aarch64-got) @cost, implicit-def dead $x16, implicit-def dead $x17, implicit-def dead $nzcv
B %bb.41 parent 23a674d commit ca1b92f
File tree
2 files changed
+8
-10
lines changed- llvm/lib
- CodeGen
- Target/AArch64
2 files changed
+8
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
563 | | - | |
564 | | - | |
565 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
566 | 570 | | |
567 | 571 | | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
575 | 572 | | |
576 | 573 | | |
577 | 574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
| 1998 | + | |
1998 | 1999 | | |
1999 | 2000 | | |
2000 | 2001 | | |
| |||
0 commit comments