diff options
Diffstat (limited to 'test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll')
| -rw-r--r-- | test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll b/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll new file mode 100644 index 000000000000..439ea7e2228a --- /dev/null +++ b/test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | opt -loopsimplify -licm -disable-output +define void @main() { +entry: + br i1 false, label %Out, label %loop +loop: ; preds = %loop, %entry + %LI = icmp sgt i32 0, 0 ; <i1> [#uses=1] + br i1 %LI, label %loop, label %Out +Out: ; preds = %loop, %entry + ret void +} + |
