Skip to content

Commit 3496abb

Browse files
committed
shorted test
1 parent 6347c9c commit 3496abb

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
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+
// Passes registered via registerOptimizerLastEPCallback don't run on empty
33+
// code
34+
__attribute__((sycl_device)) void bar() {
3935
}

0 commit comments

Comments
 (0)