summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
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
commitec3f8cd551ed66a0d9bab38c10e3596105e59d71 (patch)
tree0f39b8a3d1efa52c02ec3ccbb933e2c1bbdffda0 /test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
parentce8492def29ac6255a480e87828f9dc8d328f412 (diff)
downloadllvm-ec3f8cd551ed66a0d9bab38c10e3596105e59d71.tar.gz
llvm-ec3f8cd551ed66a0d9bab38c10e3596105e59d71.tar.bz2
llvm-ec3f8cd551ed66a0d9bab38c10e3596105e59d71.tar.xz
New testcase that crashes the instcombine pass. Dominance properties have
no meaning if the code is not reachable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll')
-rw-r--r--test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll b/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
new file mode 100644
index 0000000000..b7bfb29f43
--- /dev/null
+++ b/test/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
+}