[llvm] r185729 - [TRE] Combined another test into basic.ll

Michael Gottesman mgottesman at apple.com
Fri Jul 5 15:24:06 PDT 2013


Author: mgottesman
Date: Fri Jul  5 17:24:06 2013
New Revision: 185729

URL: http://llvm.org/viewvc/llvm-project?rev=185729&view=rev
Log:
[TRE] Combined another test into basic.ll

Removed:
    llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
Modified:
    llvm/trunk/test/Transforms/TailCallElim/basic.ll

Modified: llvm/trunk/test/Transforms/TailCallElim/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/TailCallElim/basic.ll?rev=185729&r1=185728&r2=185729&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/TailCallElim/basic.ll (original)
+++ llvm/trunk/test/Transforms/TailCallElim/basic.ll Fri Jul  5 17:24:06 2013
@@ -17,6 +17,7 @@ define i32 @test1() {
 	%A = alloca i32		; <i32*> [#uses=2]
 	store i32 5, i32* %A
 	call void @use(i32* %A)
+; CHECK: tail call i32 @test1
 	%X = tail call i32 @test1()		; <i32> [#uses=1]
 	ret i32 %X
 }

Removed: llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll?rev=185728&view=auto
==============================================================================
--- llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll (original)
+++ llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll (removed)
@@ -1,13 +0,0 @@
-; RUN: opt < %s -tailcallelim -S | FileCheck %s
-
-declare void @bar(i32*)
-
-define i32 @foo(i32 %N) {
-	%A = alloca i32, i32 %N		; <i32*> [#uses=2]
-	store i32 17, i32* %A
-	call void @bar( i32* %A )
-; CHECK: tail call i32 @foo
-	%X = tail call i32 @foo( i32 %N )		; <i32> [#uses=1]
-	ret i32 %X
-}
-





More information about the llvm-commits mailing list