File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
llvm/test/Transforms/FunctionAttrs Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Check LLVM optimization pipeline is run by default for SPIR-V compiled for
2
2
// SYCL device target, and can be disabled with -fno-sycl-early-optimizations.
3
3
//
4
- // 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
4
+ // 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
5
5
// CHECK-EARLYOPT: Lower Work Group Scope Code
6
6
// CHECK-EARLYOPT: Combine redundant instructions
7
7
//
8
- // 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
8
+ // 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
9
9
// CHECK-NOEARLYOPT: Lower Work Group Scope Code
10
10
// CHECK-NOEARLYOPT-NOT: Combine redundant instructions
11
+ //
12
+ //
13
+ // New pass manager doesn't print all passes tree, only module level.
14
+ //
15
+ // 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
16
+ // CHECK-NEWPM-EARLYOPT: ConstantMergePass
17
+ // CHECK-NEWPM-EARLYOPT: SYCLMutatePrintfAddrspacePass
18
+ //
19
+ // 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
20
+ // CHECK-NEWPM-NOEARLYOPT-NOT: ConstantMergePass
21
+ // CHECK-NEWPM-NOEARLYOPT: SYCLMutatePrintfAddrspacePass
Original file line number Diff line number Diff line change 1
1
; First test run uses module pass that is not designed for the old pass manager.
2
2
; Expect different input till the moment when NewPM is enabled by default.
3
- ; RUN: opt < %s -basic-aa -function-attrs -S | FileCheck %s --check-prefix=CHECK-OLD-PM
3
+ ; RUN: opt < %s -basic-aa -function-attrs -S -enable-new-pm=0 | FileCheck %s --check-prefix=CHECK-OLD-PM
4
4
; RUN: opt < %s -aa-pipeline=basic-aa -passes=function-attrs -S | FileCheck %s --check-prefix=CHECK-FUNC-PASS
5
5
6
6
; CHECK: define i32 @f() #0
You can’t perform that action at this time.
0 commit comments