File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments