summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/statepoint-stack-usage.ll
diff options
context:
space:
mode:
authorGeoff Berry <gberry@codeaurora.org>2017-09-01 14:27:20 +0000
committerGeoff Berry <gberry@codeaurora.org>2017-09-01 14:27:20 +0000
commit65528f29913a541f3d250dbee2d93a3b1db68e4d (patch)
treeea495dfc215a4f7074639a69212f2ec7d9e05c49 /llvm/test/CodeGen/X86/statepoint-stack-usage.ll
parente89c5bfbc20e69333d8aebdc5c8669a078391d99 (diff)
downloadbcm5719-llvm-65528f29913a541f3d250dbee2d93a3b1db68e4d.tar.gz
bcm5719-llvm-65528f29913a541f3d250dbee2d93a3b1db68e4d.zip
Re-enable "[MachineCopyPropagation] Extend pass to do COPY source forwarding"
Issues addressed since original review: - Moved removal of dead instructions found by LiveIntervals::shrinkToUses() outside of loop iterating over instructions to avoid instructions being deleted while pointed to by iterator. - Fixed ARMLoadStoreOptimizer bug exposed by this change in r311907. - The pass no longer forwards COPYs to physical register uses, since doing so can break code that implicitly relies on the physical register number of the use. - The pass no longer forwards COPYs to undef uses, since doing so can break the machine verifier by creating LiveRanges that don't end on a use (since the undef operand is not considered a use). [MachineCopyPropagation] Extend pass to do COPY source forwarding This change extends MachineCopyPropagation to do COPY source forwarding. This change also extends the MachineCopyPropagation pass to be able to be run during register allocation, after physical registers have been assigned, but before the virtual registers have been re-written, which allows it to remove virtual register COPY LiveIntervals that become dead through the forwarding of all of their uses. llvm-svn: 312328
Diffstat (limited to 'llvm/test/CodeGen/X86/statepoint-stack-usage.ll')
-rw-r--r--llvm/test/CodeGen/X86/statepoint-stack-usage.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/statepoint-stack-usage.ll b/llvm/test/CodeGen/X86/statepoint-stack-usage.ll
index 6e7fc7bf1c0..73b0d6a1807 100644
--- a/llvm/test/CodeGen/X86/statepoint-stack-usage.ll
+++ b/llvm/test/CodeGen/X86/statepoint-stack-usage.ll
@@ -61,9 +61,9 @@ define i32 @back_to_back_deopt(i32 %a, i32 %b, i32 %c) #1
gc "statepoint-example" {
; CHECK-LABEL: back_to_back_deopt
; The exact stores don't matter, but there need to be three stack slots created
-; CHECK-DAG: movl %ebx, 12(%rsp)
-; CHECK-DAG: movl %ebp, 8(%rsp)
-; CHECK-DAG: movl %r14d, 4(%rsp)
+; CHECK-DAG: movl %edi, 12(%rsp)
+; CHECK-DAG: movl %esi, 8(%rsp)
+; CHECK-DAG: movl %edx, 4(%rsp)
; CHECK: callq
; CHECK-DAG: movl %ebx, 12(%rsp)
; CHECK-DAG: movl %ebp, 8(%rsp)
OpenPOWER on IntegriCloud