Re-land [openmp] Fix warnings when building on Windows with latest MSVC or Clang...
[llvm-project.git] / llvm / test / Transforms / SimplifyCFG / 2008-09-17-SpeculativeHoist.ll
blob6558782d641417aaccb76f335c667984d9cea315
1 ; RUN: opt < %s -passes=simplifycfg -simplifycfg-require-and-preserve-domtree=1 -disable-output
2 ; PR 2800
4 define void @foo() {
5 start:
6         %tmp = call i1 @bar( )          ; <i1> [#uses=4]
7         br i1 %tmp, label %brtrue, label %brfalse
9 brtrue:         ; preds = %start
10         %tmpnew = and i1 %tmp, %tmp             ; <i1> [#uses=1]
11         br label %brfalse
13 brfalse:                ; preds = %brtrue, %start
14         %andandtmp.0 = phi i1 [ %tmp, %start ], [ %tmpnew, %brtrue ]            ; <i1> [#uses=0]
15         ret void
18 declare i1 @bar()