Skip to content

Commit 20d0aca

Browse files
author
Jinsong Ji
committed
[clang][Driver] Add -fintegrate-as to debug-pass-structure test
CGProfilePass is not always on, it will be disabled when using non-intergrated assemblers. // Only enable CGProfilePass when using integrated assembler, since // non-integrated assemblers don't recognize .cgprofile section. PMBuilder.CallGraphProfile = !CodeGenOpts.DisableIntegratedAS; Add -fintegrate-as to make sure the output don't rely on the platform default. Reviewed By: evgeny777 Differential Revision: https://reviews.llvm.org/D101918
1 parent 67ee2f8 commit 20d0aca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/test/Driver/debug-pass-structure.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Test that we print pass structure with new and legacy PM.
2-
// RUN: %clang -fexperimental-new-pass-manager -fdebug-pass-structure -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=NEWPM
2+
// RUN: %clang -fexperimental-new-pass-manager -fdebug-pass-structure -fintegrated-as -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=NEWPM
33
// RUN: %clang -flegacy-pass-manager -fdebug-pass-structure -O0 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LEGACYPM
44
// REQUIRES: asserts
55

@@ -32,6 +32,7 @@
3232
// NEWPM-NEXT: ReversePostOrderFunctionAttrsPass on [module]
3333
// NEWPM-NEXT: RequireAnalysisPass<{{.*}}> on [module]
3434
// NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module]
35+
// CGProfilePass is disabled with non-integrated assemblers
3536
// NEWPM-NEXT: CGProfilePass on [module]
3637
// NEWPM-NEXT: GlobalDCEPass on [module]
3738
// NEWPM-NEXT: ConstantMergePass on [module]

0 commit comments

Comments
 (0)