[llvm] r290589 - [PM] Wire up another test to the new pass manager.

Chandler Carruth via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 26 22:46:16 PST 2016


Author: chandlerc
Date: Tue Dec 27 00:46:16 2016
New Revision: 290589

URL: http://llvm.org/viewvc/llvm-project?rev=290589&view=rev
Log:
[PM] Wire up another test to the new pass manager.

Nothing really interesting here, but I had to improve the test to use
variables rather than hard coding value names as we happen to end up
with different value names in the new PM.

Modified:
    llvm/trunk/test/Transforms/Inline/inalloca-not-static.ll

Modified: llvm/trunk/test/Transforms/Inline/inalloca-not-static.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Inline/inalloca-not-static.ll?rev=290589&r1=290588&r2=290589&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Inline/inalloca-not-static.ll (original)
+++ llvm/trunk/test/Transforms/Inline/inalloca-not-static.ll Tue Dec 27 00:46:16 2016
@@ -1,4 +1,5 @@
 ; RUN: opt -always-inline -S < %s | FileCheck %s
+; RUN: opt -passes=always-inline -S < %s | FileCheck %s
 
 ; We used to misclassify inalloca as a static alloca in the inliner. This only
 ; arose with for alwaysinline functions, because the normal inliner refuses to
@@ -54,10 +55,11 @@ entry:
 }
 
 ; CHECK: define void @f()
-; CHECK:   %inalloca.save.i = call i8* @llvm.stacksave()
-; CHECK:   alloca inalloca <{ %struct.Foo }>, align 4
-; CHECK:   %call.i = call x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE at XZ"(%struct.Foo* %0)
-; CHECK:   %o.i.i = getelementptr inbounds <{ %struct.Foo }>, <{ %struct.Foo }>* %argmem.i, i32 0, i32 0
-; CHECK:   call x86_thiscallcc void @"\01??1Foo@@QAE at XZ"(%struct.Foo* %o.i.i)
-; CHECK:   call void @llvm.stackrestore(i8* %inalloca.save.i)
+; CHECK:   %[[STACKSAVE:.*]] = call i8* @llvm.stacksave()
+; CHECK:   %[[ARGMEM:.*]] = alloca inalloca <{ %struct.Foo }>, align 4
+; CHECK:   %[[GEP1:.*]] = getelementptr inbounds <{ %struct.Foo }>, <{ %struct.Foo }>* %[[ARGMEM]], i32 0, i32 0
+; CHECK:   %[[CALL:.*]] = call x86_thiscallcc %struct.Foo* @"\01??0Foo@@QAE at XZ"(%struct.Foo* %[[GEP1]])
+; CHECK:   %[[GEP2:.*]] = getelementptr inbounds <{ %struct.Foo }>, <{ %struct.Foo }>* %[[ARGMEM]], i32 0, i32 0
+; CHECK:   call x86_thiscallcc void @"\01??1Foo@@QAE at XZ"(%struct.Foo* %[[GEP2]])
+; CHECK:   call void @llvm.stackrestore(i8* %[[STACKSAVE]])
 ; CHECK:   ret void




More information about the llvm-commits mailing list