New testcase: do not DCE volatile loads!
authorChris Lattner <sabre@nondot.org>
Tue, 9 Sep 2003 18:15:45 +0000 (18:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Sep 2003 18:15:45 +0000 (18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8421 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll
new file mode 100644 (file)
index 0000000..890d61e
--- /dev/null
@@ -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
+}