From 1fc08f5e9ef733ef1ce6f363fecedc2260e78974 Mon Sep 17 00:00:00 2001 From: dim Date: Sat, 14 Apr 2012 13:54:10 +0000 Subject: Vendor import of llvm trunk r154661: http://llvm.org/svn/llvm-project/llvm/trunk@r154661 --- test/Transforms/SimplifyCFG/branch-fold.ll | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'test/Transforms/SimplifyCFG/branch-fold.ll') diff --git a/test/Transforms/SimplifyCFG/branch-fold.ll b/test/Transforms/SimplifyCFG/branch-fold.ll index 266609b5..2b29681 100644 --- a/test/Transforms/SimplifyCFG/branch-fold.ll +++ b/test/Transforms/SimplifyCFG/branch-fold.ll @@ -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 } - -- cgit v1.1