diff options
| author | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-08-03 17:47:58 +0000 |
|---|---|---|
| committer | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-08-03 17:47:58 +0000 |
| commit | c7d3d34b98e9397fd24eb4b148987aad3311a880 (patch) | |
| tree | 6151de8149a7b5db605589f5628b3e6771b391a8 /clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl | |
| parent | c2d93d6619c4820499e688eac226d7d3cae37f3a (diff) | |
| download | bcm5719-llvm-c7d3d34b98e9397fd24eb4b148987aad3311a880.tar.gz bcm5719-llvm-c7d3d34b98e9397fd24eb4b148987aad3311a880.zip | |
Revert "[OpenCL] Always emit alloca in entry block for enqueue_kernel builtin"
This reverts commit r338899, it was causing ASan test failures on sanitizer-x86_64-linux-fast.
llvm-svn: 338904
Diffstat (limited to 'clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl')
| -rw-r--r-- | clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl b/clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl deleted file mode 100644 index 00c4755c1cc..00000000000 --- a/clang/test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl +++ /dev/null @@ -1,31 +0,0 @@ -// RUN: %clang_cc1 -cl-std=CL2.0 -O0 -emit-llvm -o - -triple amdgcn < %s | FileCheck %s --check-prefixes=COMMON,AMDGPU -// RUN: %clang_cc1 -cl-std=CL2.0 -O0 -emit-llvm -o - -triple "spir-unknown-unknown" < %s | FileCheck %s --check-prefixes=COMMON,SPIR32 -// RUN: %clang_cc1 -cl-std=CL2.0 -O0 -emit-llvm -o - -triple "spir64-unknown-unknown" < %s | FileCheck %s --check-prefixes=COMMON,SPIR64 -// RUN: %clang_cc1 -cl-std=CL2.0 -O0 -debug-info-kind=limited -emit-llvm -o - -triple amdgcn < %s | FileCheck %s --check-prefixes=CHECK-DEBUG - -// Check that the enqueue_kernel array temporary is in the entry block to avoid -// a dynamic alloca - -typedef struct {int a;} ndrange_t; - -kernel void test(int i) { -// COMMON-LABEL: define {{.*}} void @test -// COMMON-LABEL: entry: -// AMDGPU: %block_sizes = alloca [1 x i64] -// SPIR32: %block_sizes = alloca [1 x i32] -// SPIR64: %block_sizes = alloca [1 x i64] -// COMMON-LABEL: if.then: -// COMMON-NOT: alloca -// CHECK-DEBUG: getelementptr {{.*}} %block_sizes, {{.*}} !dbg !34 -// COMMON-LABEL: if.end - queue_t default_queue; - unsigned flags = 0; - ndrange_t ndrange; - if (i) - enqueue_kernel(default_queue, flags, ndrange, ^(local void *a) { }, 32); -} - -// Check that the temporary is scoped to the `if` - -// CHECK-DEBUG: !32 = distinct !DILexicalBlock(scope: !7, file: !1, line: 24) -// CHECK-DEBUG: !34 = !DILocation(line: 25, scope: !32) |

