Skip to content

Commit 7472639

Browse files
committed
Add test.
1 parent 0c8f4f8 commit 7472639

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Check LLVM optimization pipeline is run by default for SPIR-V compiled for
2+
// SYCL device target, and can be disabled with -fno-sycl-early-optimizations.
3+
//
4+
// RUN: %clang_cc1 -O2 -fsycl -fsycl-is-device -triple spir64-unknown-unknown-sycldevice %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-EARLYOPT
5+
// CHECK-EARLYOPT: Lower Work Group Scope Code
6+
// CHECK-EARLYOPT: Combine redundant instructions
7+
//
8+
// RUN: %clang_cc1 -O2 -fsycl -fsycl-is-device -fno-sycl-early-optimizations -triple spir64-unknown-unknown-sycldevice %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-NOEARLYOPT
9+
// CHECK-NOEARLYOPT: Lower Work Group Scope Code
10+
// CHECK-NOEARLYOPT-NOT: Combine redundant instructions

0 commit comments

Comments
 (0)