llvm-6502/test/Analysis/Dominators/2006-10-02-BreakCritEdges.ll
Dan Gohman f2f6ce65b7 Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 18:01:28 +00:00

21 lines
496 B
LLVM

; RUN: opt < %s -domtree -break-crit-edges -analyze \
; RUN: -domtree | grep {3.*%brtrue }
; PR932
declare void @use1(i32)
define void @f(i32 %i, i1 %c) {
entry:
%A = icmp eq i32 %i, 0 ; <i1> [#uses=1]
br i1 %A, label %brtrue, label %brfalse
brtrue: ; preds = %brtrue, %entry
%B = phi i1 [ true, %brtrue ], [ false, %entry ] ; <i1> [#uses=1]
call void @use1( i32 %i )
br i1 %B, label %brtrue, label %brfalse
brfalse: ; preds = %brtrue, %entry
call void @use1( i32 %i )
ret void
}