diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-12-08 22:36:35 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-12-08 22:36:35 +0000 |
commit | c9b98ad7a7c3f2c098657a077a995912dce033e3 (patch) | |
tree | 2a40bea26e4574002ea98ba07eb26f2bf3aaa219 /test | |
parent | e955726a0e306127317a4392aa70823c2a10420e (diff) | |
download | llvm-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.ll | 10 |
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 +} + |