1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Transforms/PredicateSimplifier/predsimplify.reg3.ll
Tanya Lattner f0dc625b4f Upgrade tests.
llvm-svn: 48536
2008-03-19 05:39:35 +00:00

23 lines
523 B
LLVM

; RUN: llvm-as < %s | opt -predsimplify -simplifycfg | llvm-dis | grep pass
define void @regtest(i32 %x) {
entry:
%A = icmp eq i32 %x, 0 ; <i1> [#uses=1]
br i1 %A, label %middle, label %after
middle: ; preds = %entry
br label %after
after: ; preds = %middle, %entry
%B = icmp eq i32 %x, 0 ; <i1> [#uses=1]
br i1 %B, label %then, label %else
then: ; preds = %after
br label %end
else: ; preds = %after
call void (...)* @pass( )
br label %end
end: ; preds = %else, %then
ret void
}
declare void @pass(...)