diff --git a/llvm/test/Regression/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll b/llvm/test/Regression/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll new file mode 100644 index 000000000000..8e1337993ff9 --- /dev/null +++ b/llvm/test/Regression/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -loopsimplify -licm -disable-output +void %main() { +entry: + br bool false, label %Out, label %loop + +loop: + %LI = setgt int 0, 0 + br bool %LI, label %loop, label %Out + +Out: + ret void +}