[llvm-commits] [llvm] r145143 - /llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll

Chandler Carruth chandlerc at gmail.com
Sat Nov 26 00:24:26 PST 2011


Author: chandlerc
Date: Sat Nov 26 02:24:25 2011
New Revision: 145143

URL: http://llvm.org/viewvc/llvm-project?rev=145143&view=rev
Log:
FileCheck-ize this test and make it more precise. This is in preparation
for adding other tests.

Modified:
    llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll

Modified: llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll?rev=145143&r1=145142&r2=145143&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll Sat Nov 26 02:24:25 2011
@@ -1,13 +1,19 @@
-; RUN: opt < %s -simplifycfg -S | grep {br i1} | count 1
+; RUN: opt < %s -simplifycfg -S | FileCheck %s
 
 define void @test(i32* %P, i32* %Q, i1 %A, i1 %B) {
+; CHECK: test
+; CHECK: br i1
+; CHECK-NOT: br i1
+; CHECK: ret
+; CHECK: ret
+
+entry:
         br i1 %A, label %a, label %b
-a:              ; preds = %0
+a:
         br i1 %B, label %b, label %c
-b:              ; preds = %a, %0
+b:
         store i32 123, i32* %P
         ret void
-c:              ; preds = %a
+c:
         ret void
 }
-





More information about the llvm-commits mailing list