summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-09 18:15:45 +0000
committerChris Lattner <sabre@nondot.org>2003-09-09 18:15:45 +0000
commitffd340c6b6f7e1db088e78b238edbcb5c2a00fdc (patch)
tree637b0328ff06697db702aacb7224cd948e57ec67 /test
parent30e2d91b471c5d5e7370f7f6d8c8644180c5056f (diff)
downloadllvm-ffd340c6b6f7e1db088e78b238edbcb5c2a00fdc.tar.gz
llvm-ffd340c6b6f7e1db088e78b238edbcb5c2a00fdc.tar.bz2
llvm-ffd340c6b6f7e1db088e78b238edbcb5c2a00fdc.tar.xz
New testcase: do not DCE volatile loads!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
new file mode 100644
index 0000000000..890d61e7ca
--- /dev/null
+++ b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
@@ -0,0 +1,5 @@
+; RUN: as < %s | opt -instcombine | dis | grep load
+void %test(int* %P) {
+ %X = volatile load int* %P ; Dead but not deletable!
+ ret void
+}