-
Notifications
You must be signed in to change notification settings - Fork 700
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NewPM] Update LIT tests to pass with both new and legacy PMs
Signed-off-by: Mikhail Lychkov <mikhail.lychkov@intel.com>
- Loading branch information
Showing
2 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
clang/test/CodeGenSYCL/kernel-early-optimization-pipeline.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
// Check LLVM optimization pipeline is run by default for SPIR-V compiled for | ||
// SYCL device target, and can be disabled with -fno-sycl-early-optimizations. | ||
// | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-EARLYOPT | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -flegacy-pass-manager -mllvm -debug-pass=Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-EARLYOPT | ||
// CHECK-EARLYOPT: Lower Work Group Scope Code | ||
// CHECK-EARLYOPT: Combine redundant instructions | ||
// | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -fno-sycl-early-optimizations -triple spir64-unknown-unknown %s -mllvm -debug-pass=Structure -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK-NOEARLYOPT | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -flegacy-pass-manager -mllvm -debug-pass=Structure -emit-llvm -fno-sycl-early-optimizations -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-NOEARLYOPT | ||
// CHECK-NOEARLYOPT: Lower Work Group Scope Code | ||
// CHECK-NOEARLYOPT-NOT: Combine redundant instructions | ||
// | ||
// | ||
// New pass manager doesn't print all passes tree, only module level. | ||
// | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -fno-legacy-pass-manager -mdebug-pass Structure -emit-llvm -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-NEWPM-EARLYOPT | ||
// CHECK-NEWPM-EARLYOPT: SYCLMutatePrintfAddrspacePass | ||
// CHECK-NEWPM-EARLYOPT: ConstantMergePass | ||
// | ||
// RUN: %clang_cc1 -O2 -fsycl-is-device -triple spir64-unknown-unknown %s -fno-legacy-pass-manager -mdebug-pass Structure -emit-llvm -fno-sycl-early-optimizations -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-NEWPM-NOEARLYOPT | ||
// CHECK-NEWPM-NOEARLYOPT: SYCLMutatePrintfAddrspacePass | ||
// CHECK-NEWPM-NOEARLYOPT-NOT: ConstantMergePass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters