diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-29 04:58:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-29 04:58:38 +0000 |
commit | e331a65c794c93b7c7792b7ba08ab6069b9c086d (patch) | |
tree | ae29efd1cd453671883a405cbb102eec7d55d515 /llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll | |
parent | 5c88f7b1ad861a797f50b9e1f8842ada6c9e966e (diff) | |
download | bcm5719-llvm-e331a65c794c93b7c7792b7ba08ab6069b9c086d.tar.gz bcm5719-llvm-e331a65c794c93b7c7792b7ba08ab6069b9c086d.zip |
don't delete the last store to an alloca if the store is volatile.
llvm-svn: 50390
Diffstat (limited to 'llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll')
-rw-r--r-- | llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll b/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll new file mode 100644 index 00000000000..9bfe7aa1414 --- /dev/null +++ b/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {volatile store} + +define void @test() { + %votf = alloca <4 x float> ; <<4 x float>*> [#uses=1] + volatile store <4 x float> zeroinitializer, <4 x float>* %votf, align 16 + ret void +} + |