New testcase that crashes the instcombine pass. Dominance properties have
authorChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2004 02:01:32 +0000 (02:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Apr 2004 02:01:32 +0000 (02:01 +0000)
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

test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll b/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll
new file mode 100644 (file)
index 0000000..b7bfb29
--- /dev/null
@@ -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
+}