File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 1- ; RUN: llc < %s -mcpu=sm_80 -mattr=+ptx73 -debug-only=isel -o /dev/null 2>&1 | FileCheck %s
1+ ; RUN: llc < %s -O0 -debug-only=isel -o /dev/null 2>&1 | FileCheck %s
22
33; REQUIRES: asserts
44
@@ -7,13 +7,17 @@ target triple = "nvptx64-nvidia-cuda"
77;; Selection DAG CSE is hard to test since we run CSE/GVN on the IR before and
88;; after selection DAG ISel so most cases will be handled by one of these.
99define void @foo (ptr %p ) {
10- ; CHECK-LABEL: Optimized legalized selection DAG: %bb.0 'foo:'
11- ; CHECK: addrspacecast[0 -> 5]
12- ; CHECK-NOT: addrspacecast[0 -> 5]
13- ; CHECK-LABEL: ===== Instruction selection begins
10+ ; CHECK-LABEL: Initial selection DAG
1411;
15- %a1 = addrspacecast ptr %p to ptr addrspace (5 )
16- call void @llvm.stackrestore (ptr %p )
17- store ptr %p , ptr addrspace (5 ) %a1
18- ret void
12+ ; CHECK: [[ASC:t[0-9]+]]{{.*}} = addrspacecast
13+ ; CHECK: store{{.*}} [[ASC]]
14+ ; CHECK: store{{.*}} [[ASC]]
15+ ;
16+ ; CHECK-LABEL: Optimized lowered selection
17+ ;
18+ %a1 = addrspacecast ptr %p to ptr addrspace (5 )
19+ %a2 = addrspacecast ptr %p to ptr addrspace (5 )
20+ store i32 0 , ptr addrspace (5 ) %a1
21+ store i32 0 , ptr addrspace (5 ) %a2
22+ ret void
1923}
You can’t perform that action at this time.
0 commit comments