From 767858af4319c9e9794ebca4839e980d154fa081 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 16 Mar 2004 05:44:02 +0000 Subject: [PATCH] New testcase for PR293 llvm-svn: 12433 --- .../LoopSimplify/2004-03-15-IncorrectDomUpdate.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/Regression/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll 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 +}