[llvm-commits] [llvm] r172172 - /llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll

Chris Lattner clattner at apple.com
Thu Jan 10 21:54:37 PST 2013


On Jan 10, 2013, at 8:16 PM, Michael Gottesman <mgottesman at apple.com> wrote:

> Author: mgottesman
> Date: Thu Jan 10 22:16:35 2013
> New Revision: 172172
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=172172&view=rev
> Log:
> Converted test dont-tce-tail-marked-call.ll to use FileCheck.

Nice!  While you're doing this, please feel free to merge multiple micro .ll files into larger ones.  This makes the tests run faster and be easier to read. With FileCheck (as opposed to grep), we don't lose test integrity.

-Chris

> 
> Modified:
>    llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
> 
> Modified: 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=172172&r1=172171&r2=172172&view=diff
> ==============================================================================
> --- llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll (original)
> +++ llvm/trunk/test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll Thu Jan 10 22:16:35 2013
> @@ -1,5 +1,4 @@
> -; RUN: opt < %s -tailcallelim -S | \
> -; RUN:    grep "call i32 @foo"
> +; RUN: opt < %s -tailcallelim -S | FileCheck %s
> 
> declare void @bar(i32*)
> 
> @@ -7,6 +6,7 @@
> 	%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
> }
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list