summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll')
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll b/llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll
index 0ac9ff0d663..d71b9673ed1 100644
--- a/llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll
+++ b/llvm/test/Transforms/DeadStoreElimination/operand-bundles.ll
@@ -29,3 +29,15 @@ define void @test2() {
call void @foo()
ret void
}
+
+define void @test3() {
+ ; CHECK-LABEL: @test3(
+ %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 @foo() [ "deopt"(i64* %s) ]
+ store i64 0, i64* %s
+ ret void
+}
OpenPOWER on IntegriCloud