Changeset View
Changeset View
Standalone View
Standalone View
test/GPGPU/invariant-load-hoisting.ll
Show All 15 Lines | |||||
; SCOP-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 0] | ; SCOP-NEXT: ReadAccess := [Reduction Type: NONE] [Scalar: 0] | ||||
; SCOP-NEXT: [n, tmp12] -> { Stmt_for_body6[i0, i1, i2] -> MemRef_invariant[0] }; | ; SCOP-NEXT: [n, tmp12] -> { Stmt_for_body6[i0, i1, i2] -> MemRef_invariant[0] }; | ||||
; SCOP-NEXT: Execution Context: [n, tmp12] -> { : n > 0 } | ; SCOP-NEXT: Execution Context: [n, tmp12] -> { : n > 0 } | ||||
; SCOP-NEXT: } | ; SCOP-NEXT: } | ||||
; | ; | ||||
; HOST-IR: call void @polly_launchKernel(i8* %215, i32 %221, i32 1, i32 32, i32 1, i32 1, i8* %polly_launch_0_params_i8ptr) | ; HOST-IR: call void @polly_launchKernel(i8* %215, i32 %221, i32 1, i32 32, i32 1, i32 1, i8* %polly_launch_0_params_i8ptr) | ||||
; HOST-IR-NEXT: call void @polly_freeKernel(i8* %215) | ; HOST-IR-NEXT: call void @polly_freeKernel(i8* %215) | ||||
; | ; | ||||
; KERNEL-IR: define ptx_kernel void @FUNC_f_KERNEL_0(i8 addrspace(1)* %MemRef_B, i8 addrspace(1)* %MemRef_A, i32 %n, i32 %tmp12) #0 { | ; KERNEL-IR: define ptx_kernel void @FUNC_f_SCOP_0_KERNEL_0(i8 addrspace(1)* %MemRef_B, i8 addrspace(1)* %MemRef_A, i32 %n, i32 %tmp12) #0 { | ||||
; | ; | ||||
; Check that we generate correct GPU code in case of invariant load hoisting. | ; Check that we generate correct GPU code in case of invariant load hoisting. | ||||
; | ; | ||||
; | ; | ||||
; static const int N = 3000; | ; static const int N = 3000; | ||||
; | ; | ||||
; void f(int A[N][N], int *invariant, int B[N][N], int n) { | ; void f(int A[N][N], int *invariant, int B[N][N], int n) { | ||||
; for (int i = 0; i < n; i++) { | ; for (int i = 0; i < n; i++) { | ||||
▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines |