diff options
author | Dan Gohman <gohman@apple.com> | 2012-05-10 18:57:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2012-05-10 18:57:38 +0000 |
commit | b401e3bd16c3d648464606d5e5b496dd61d12afc (patch) | |
tree | b07de7956a0b88f64d8677105b2ddd59eb17e254 /test/Transforms | |
parent | fe65d98dadbedf2650266ac71c1c093c3b97da1f (diff) | |
download | external_llvm-b401e3bd16c3d648464606d5e5b496dd61d12afc.zip external_llvm-b401e3bd16c3d648464606d5e5b496dd61d12afc.tar.gz external_llvm-b401e3bd16c3d648464606d5e5b496dd61d12afc.tar.bz2 |
Teach DeadStoreElimination to eliminate exit-block stores with phi addresses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r-- | test/Transforms/DeadStoreElimination/simple.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/DeadStoreElimination/simple.ll b/test/Transforms/DeadStoreElimination/simple.ll index 7c8a9b3..a386206 100644 --- a/test/Transforms/DeadStoreElimination/simple.ll +++ b/test/Transforms/DeadStoreElimination/simple.ll @@ -266,3 +266,13 @@ define void @test21() { ; CHECK-NEXT: ret void ret void } + +; CHECK: @test22( +define void @test22(i1 %i, i32 %k, i32 %m) nounwind { + %k.addr = alloca i32 + %m.addr = alloca i32 + %k.addr.m.addr = select i1 %i, i32* %k.addr, i32* %m.addr + store i32 0, i32* %k.addr.m.addr, align 4 +; CHECK-NEXT: ret void + ret void +} |