summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-12-08 22:36:35 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-12-08 22:36:35 +0000
commitc9b98ad7a7c3f2c098657a077a995912dce033e3 (patch)
tree2a40bea26e4574002ea98ba07eb26f2bf3aaa219 /test
parente955726a0e306127317a4392aa70823c2a10420e (diff)
downloadllvm-c9b98ad7a7c3f2c098657a077a995912dce033e3.tar.gz
llvm-c9b98ad7a7c3f2c098657a077a995912dce033e3.tar.bz2
llvm-c9b98ad7a7c3f2c098657a077a995912dce033e3.tar.xz
Fix infinite loop in DSE when deleting a free in a reachable loop that's also
trivially infinite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/DeadStoreElimination/free.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/DeadStoreElimination/free.ll b/test/Transforms/DeadStoreElimination/free.ll
index 168bd95e53..a5fbdc7638 100644
--- a/test/Transforms/DeadStoreElimination/free.ll
+++ b/test/Transforms/DeadStoreElimination/free.ll
@@ -58,3 +58,13 @@ skipinit1:
tail call void @free(i8* %alloc1) nounwind
ret void
}
+
+; CHECK: @test5
+define void @test5() {
+ br label %bb
+
+bb:
+ tail call void @free(i8* undef) nounwind
+ br label %bb
+}
+