aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll')
-rw-r--r--test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll b/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll
new file mode 100644
index 000000000000..94ce68e989b3
--- /dev/null
+++ b/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll
@@ -0,0 +1,9 @@
+; This testcase causes instcombine to hang.
+;
+; RUN: llvm-as < %s | opt -instcombine
+
+define void @test(i32 %X) {
+ %reg117 = add i32 %X, 0 ; <i32> [#uses=0]
+ ret void
+}
+