From ffd340c6b6f7e1db088e78b238edbcb5c2a00fdc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 9 Sep 2003 18:15:45 +0000 Subject: [PATCH] New testcase: do not DCE volatile loads! 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 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll 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 00000000000..890d61e7ca2 --- /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 +} -- 2.34.1