[llvm] r239842 - [Statepoints] Test only change. Check that statepoint lowering didn't generate more than expected amount of spills.
Igor Laevsky
igmyrj at gmail.com
Tue Jun 16 12:07:05 PDT 2015
Author: igor.laevsky
Date: Tue Jun 16 14:07:05 2015
New Revision: 239842
URL: http://llvm.org/viewvc/llvm-project?rev=239842&view=rev
Log:
[Statepoints] Test only change. Check that statepoint lowering didn't generate more than expected amount of spills.
See http://reviews.llvm.org/D10402 for related discussion.
Modified:
llvm/trunk/test/CodeGen/X86/statepoint-stack-usage.ll
Modified: llvm/trunk/test/CodeGen/X86/statepoint-stack-usage.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/statepoint-stack-usage.ll?rev=239842&r1=239841&r2=239842&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/statepoint-stack-usage.ll (original)
+++ llvm/trunk/test/CodeGen/X86/statepoint-stack-usage.ll Tue Jun 16 14:07:05 2015
@@ -14,6 +14,8 @@ define i32 @back_to_back_calls(i32 addrs
; CHECK: movq %rdi, 16(%rsp)
; CHECK: movq %rdx, 8(%rsp)
; CHECK: movq %rsi, (%rsp)
+; There should be no more than three moves
+; CHECK-NOT: movq
%safepoint_token = tail call i32 (i64, i32, void ()*, i32, i32, ...) @llvm.experimental.gc.statepoint.p0f_isVoidf(i64 0, i32 0, void ()* undef, i32 0, i32 0, i32 0, i32 5, i32 0, i32 -1, i32 0, i32 0, i32 0, i32 addrspace(1)* %a, i32 addrspace(1)* %b, i32 addrspace(1)* %c)
%a1 = tail call coldcc i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(i32 %safepoint_token, i32 12, i32 12)
%b1 = tail call coldcc i32 addrspace(1)* @llvm.experimental.gc.relocate.p1i32(i32 %safepoint_token, i32 12, i32 13)
More information about the llvm-commits
mailing list