[llvm] r272065 - Use FileCheck instead of grepping for patterns. NFC.
Easwaran Raman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 14:46:14 PDT 2016
Author: eraman
Date: Tue Jun 7 16:46:14 2016
New Revision: 272065
URL: http://llvm.org/viewvc/llvm-project?rev=272065&view=rev
Log:
Use FileCheck instead of grepping for patterns. NFC.
Modified:
llvm/trunk/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll
llvm/trunk/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll
llvm/trunk/test/Transforms/LCSSA/basictest.ll
Modified: llvm/trunk/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll?rev=272065&r1=272064&r2=272065&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll (original)
+++ llvm/trunk/test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll Tue Jun 7 16:46:14 2016
@@ -1,15 +1,16 @@
-; RUN: opt < %s -loop-simplify -lcssa -S | \
-; RUN: grep "%%SJE.0.0.lcssa = phi .struct.SetJmpMapEntry"
+; RUN: opt < %s -loop-simplify -lcssa -S | FileCheck %s
%struct.SetJmpMapEntry = type { i8*, i32, %struct.SetJmpMapEntry* }
define void @__llvm_sjljeh_try_catching_longjmp_exception() {
+; CHECK-LABEL: @__llvm_sjljeh_try_catching_longjmp_exception
entry:
br i1 false, label %UnifiedReturnBlock, label %no_exit
no_exit: ; preds = %endif, %entry
%SJE.0.0 = phi %struct.SetJmpMapEntry* [ %tmp.24, %endif ], [ null, %entry ] ; <%struct.SetJmpMapEntry*> [#uses=1]
br i1 false, label %then, label %endif
then: ; preds = %no_exit
+; CHECK: %SJE.0.0.lcssa = phi %struct.SetJmpMapEntry
%tmp.20 = getelementptr %struct.SetJmpMapEntry, %struct.SetJmpMapEntry* %SJE.0.0, i32 0, i32 1 ; <i32*> [#uses=0]
ret void
endif: ; preds = %no_exit
Modified: llvm/trunk/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll?rev=272065&r1=272064&r2=272065&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll (original)
+++ llvm/trunk/test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll Tue Jun 7 16:46:14 2016
@@ -1,13 +1,11 @@
-; RUN: opt < %s -lcssa -S | \
-; RUN: grep "%X.1.lcssa"
-; RUN: opt < %s -lcssa -S | \
-; RUN: not grep "%X.1.lcssa1"
+; RUN: opt < %s -lcssa -S | FileCheck %s
declare i1 @c1()
declare i1 @c2()
define i32 @foo() {
+; CHECK-LABEL: @foo
entry:
br label %loop_begin
loop_begin: ; preds = %loop_body.2, %entry
@@ -20,8 +18,10 @@ loop_body.2: ; preds = %loop_body.1
%rel.2 = call i1 @c2( ) ; <i1> [#uses=1]
br i1 %rel.2, label %loop_exit, label %loop_begin
loop_exit: ; preds = %loop_body.2, %loop_body.1
+; CHECK: %X.1.lcssa = phi
ret i32 %X.1
loop_exit2: ; preds = %loop_begin
ret i32 1
+; CHECK-NOT: %X.1.lcssa1
}
Modified: llvm/trunk/test/Transforms/LCSSA/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LCSSA/basictest.ll?rev=272065&r1=272064&r2=272065&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LCSSA/basictest.ll (original)
+++ llvm/trunk/test/Transforms/LCSSA/basictest.ll Tue Jun 7 16:46:14 2016
@@ -1,9 +1,7 @@
-; RUN: opt < %s -lcssa -S | \
-; RUN: grep "X3.lcssa = phi i32"
-; RUN: opt < %s -lcssa -S | \
-; RUN: grep "X4 = add i32 3, %X3.lcssa"
+; RUN: opt < %s -lcssa -S | FileCheck %s
define void @lcssa(i1 %S2) {
+; CHECK-LABEL: @lcssa
entry:
br label %loop.interior
loop.interior: ; preds = %post.if, %entry
@@ -18,6 +16,8 @@ post.if: ; preds = %if.false, %if.true
%X3 = phi i32 [ %X1, %if.true ], [ %X2, %if.false ] ; <i32> [#uses=1]
br i1 %S2, label %loop.exit, label %loop.interior
loop.exit: ; preds = %post.if
+; CHECK: %X3.lcssa = phi i32
+; CHECK: %X4 = add i32 3, %X3.lcssa
%X4 = add i32 3, %X3 ; <i32> [#uses=0]
ret void
}
More information about the llvm-commits
mailing list