Skip to content

Commit 5f683c1

Browse files
MrSidimsFznamznon
andauthored
Update clang/test/CodeGenSYCL/kernel-early-optimization-pipeline.cpp
Co-authored-by: Mariya Podchishchaeva <mariya.podchishchaeva@intel.com>
1 parent 6347c9c commit 5f683c1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

clang/test/CodeGenSYCL/kernel-early-optimization-pipeline.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@
2929
// RUN: %clang_cc1 -O0 -fsycl-is-device -triple spir64-unknown-unknown %s -mdebug-pass Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-O0
3030
// CHECK-O0-NOT: SYCLOptimizeBarriersPass
3131

32-
template <typename name, typename Func>
33-
void kernel(const Func &f) __attribute__((sycl_kernel)) {
34-
f();
35-
}
36-
37-
void bar() {
38-
kernel<class MyKernel>([=]() {});
32+
// Some passes don't run on empty code
33+
__attribute__((sycl_device)) void bar() {
3934
}

0 commit comments

Comments
 (0)