summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-05 02:01:32 +0000
committerChris Lattner <sabre@nondot.org>2004-04-05 02:01:32 +0000
commite79fd5c76635df53aa39c4c390333d86a40f84dd (patch)
treeb67783391406924e36b8a961d085faac558c4306
parent677202b49ef2d354f796e445783311cdb7a8815f (diff)
downloadbcm5719-llvm-e79fd5c76635df53aa39c4c390333d86a40f84dd.tar.gz
bcm5719-llvm-e79fd5c76635df53aa39c4c390333d86a40f84dd.zip
New testcase that crashes the instcombine pass. Dominance properties have
no meaning if the code is not reachable. llvm-svn: 12657
-rw-r--r--llvm/test/Regression/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll b/llvm/test/Regression/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
new file mode 100644
index 00000000000..b7bfb29f434
--- /dev/null
+++ b/llvm/test/Regression/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine -disable-output
+
+int %test() {
+ ret int 0
+Loop:
+ %X = add int %X, 1
+ br label %Loop
+}
OpenPOWER on IntegriCloud