From d5e4e1756feb1b99155ac96db5a320dd58c1fa77 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 8 Dec 2004 22:18:35 +0000 Subject: [PATCH] This testcase causes the instruction combiner to go spiraling into an infinite loop. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18669 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll diff --git a/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll b/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll new file mode 100644 index 00000000000..7f83fa837de --- /dev/null +++ b/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll @@ -0,0 +1,6 @@ +; RUN: llvm-as < %s | opt -instcombine + +int %test(int %X) { + %Y = rem int %X, undef + ret int %Y +}