diff options
| author | Jessica Paquette <jpaquette@apple.com> | 2018-03-16 22:53:34 +0000 |
|---|---|---|
| committer | Jessica Paquette <jpaquette@apple.com> | 2018-03-16 22:53:34 +0000 |
| commit | b3e7dc9144eee605a6456e6aef94a8e0a77c6cdb (patch) | |
| tree | 400c87cd2943db7f7577e8d6745f1bc59463fcad /llvm/test/CodeGen/AArch64 | |
| parent | 961235d3352963cbe9efac946ec2f6ae9c14276c (diff) | |
| download | bcm5719-llvm-b3e7dc9144eee605a6456e6aef94a8e0a77c6cdb.tar.gz bcm5719-llvm-b3e7dc9144eee605a6456e6aef94a8e0a77c6cdb.zip | |
[MachineOutliner] Make KILLs invisible
At the point the outliner runs, KILLs don't impact anything, but they're still
considered unique instructions. This commit makes them invisible like
DebugValues so that they can still be outlined without impacting outlining
decisions.
llvm-svn: 327760
Diffstat (limited to 'llvm/test/CodeGen/AArch64')
| -rw-r--r-- | llvm/test/CodeGen/AArch64/machine-outliner.mir | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AArch64/machine-outliner.mir b/llvm/test/CodeGen/AArch64/machine-outliner.mir index ae508dc98c3..79d0ed2d070 100644 --- a/llvm/test/CodeGen/AArch64/machine-outliner.mir +++ b/llvm/test/CodeGen/AArch64/machine-outliner.mir @@ -100,12 +100,14 @@ body: | ... --- # This test ensures that we can avoid saving LR when it's available. +# It also makes sure that KILL instructions don't impact outlining. # CHECK-LABEL: bb.1: # CHECK-NOT: BL @baz, implicit-def dead $lr, implicit $sp # CHECK: BL @OUTLINED_FUNCTION_[[F1:[0-9]+]], implicit-def $lr, implicit $sp # CHECK-NEXT: $w17 = ORRWri $wzr, 2 # CHECK-NEXT: BL @OUTLINED_FUNCTION_[[F1]], implicit-def $lr, implicit $sp # CHECK-NEXT: $w8 = ORRWri $wzr, 0 +# CHECK-NOT: $w17 = KILL renamable $w17, implicit killed $w17 name: bar tracksRegLiveness: true body: | @@ -118,6 +120,7 @@ body: | BL @baz, implicit-def dead $lr, implicit $sp $w17 = ORRWri $wzr, 1 $w17 = ORRWri $wzr, 1 + $w17 = KILL renamable $w17, implicit killed $w17 $w17 = ORRWri $wzr, 1 $w17 = ORRWri $wzr, 1 BL @baz, implicit-def dead $lr, implicit $sp |

