llvm.org GIT mirror llvm / 6027190
Move previously added test case to the right location In rL272580 I accidentally added a test case to test/CodeGen when test/Transforms/DeadStoreElimination/ is a better place for it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272581 91177308-0d34-0410-b5e6-96231b3b80d8 Sanjoy Das 3 years ago
2 changed file(s) with 12 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
+0
-17
test/CodeGen/X86/statepoint-memdep.ll less more
None ; RUN: opt -S -dse < %s | FileCheck %s
1 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
2 target triple = "x86_64-unknown-linux-gnu"
3
4 define void @f() {
5 ; CHECK-LABEL: @f(
6 %s = alloca i64
7 ; Verify that this first store is not considered killed by the second one
8 ; since it could be observed from the deopt continuation.
9 ; CHECK: store i64 1, i64* %s
10 store i64 1, i64* %s
11 call void @g() [ "deopt"(i64* %s) ]
12 store i64 0, i64* %s
13 ret void
14 }
15
16 declare void @g()
2828 call void @foo()
2929 ret void
3030 }
31
32 define void @test3() {
33 ; CHECK-LABEL: @test3(
34 %s = alloca i64
35 ; Verify that this first store is not considered killed by the second one
36 ; since it could be observed from the deopt continuation.
37 ; CHECK: store i64 1, i64* %s
38 store i64 1, i64* %s
39 call void @foo() [ "deopt"(i64* %s) ]
40 store i64 0, i64* %s
41 ret void
42 }