diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-06-13 19:55:04 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-06-13 19:55:04 +0000 |
| commit | d0bdf3e02ba61a704bae67f188ff7e5a8be135ed (patch) | |
| tree | 876b50fd5f819e9059bb48242e8990375ba3e533 /llvm/test/CodeGen/X86/statepoint-memdep.ll | |
| parent | 99646871a74669a33ccd4c004a2087e2a348ddd6 (diff) | |
| download | bcm5719-llvm-d0bdf3e02ba61a704bae67f188ff7e5a8be135ed.tar.gz bcm5719-llvm-d0bdf3e02ba61a704bae67f188ff7e5a8be135ed.zip | |
Fix AAResults::callCapturesBefore for operand bundles
Summary:
AAResults::callCapturesBefore would previously ignore operand
bundles. It was possible for a later instruction to miss its memory
dependency on a call site that would only access the pointer through a
bundle.
Patch by Oscar Blumberg!
Reviewers: sanjoy
Differential Revision: http://reviews.llvm.org/D21286
llvm-svn: 272580
Diffstat (limited to 'llvm/test/CodeGen/X86/statepoint-memdep.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/statepoint-memdep.ll | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/statepoint-memdep.ll b/llvm/test/CodeGen/X86/statepoint-memdep.ll new file mode 100644 index 00000000000..c22a25ed7d8 --- /dev/null +++ b/llvm/test/CodeGen/X86/statepoint-memdep.ll @@ -0,0 +1,17 @@ +; RUN: opt -S -dse < %s | FileCheck %s +target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" +target triple = "x86_64-unknown-linux-gnu" + +define void @f() { + ; CHECK-LABEL: @f( + %s = alloca i64 + ; Verify that this first store is not considered killed by the second one + ; since it could be observed from the deopt continuation. + ; CHECK: store i64 1, i64* %s + store i64 1, i64* %s + call void @g() [ "deopt"(i64* %s) ] + store i64 0, i64* %s + ret void +} + +declare void @g() |

