Author: Jinsong Ji Date: 2021-05-05T16:10:57Z New Revision: 20d0aca43073f18f70b1c5a665631dee1be1598d
URL: https://github.com/llvm/llvm-project/commit/20d0aca43073f18f70b1c5a665631dee1be1598d DIFF: https://github.com/llvm/llvm-project/commit/20d0aca43073f18f70b1c5a665631dee1be1598d.diff LOG: [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 Added: Modified: clang/test/Driver/debug-pass-structure.c Removed: ################################################################################ diff --git a/clang/test/Driver/debug-pass-structure.c b/clang/test/Driver/debug-pass-structure.c index 2f250105d7b3..ca22e69baf07 100644 --- a/clang/test/Driver/debug-pass-structure.c +++ b/clang/test/Driver/debug-pass-structure.c @@ -1,5 +1,5 @@ // Test that we print pass structure with new and legacy PM. -// RUN: %clang -fexperimental-new-pass-manager -fdebug-pass-structure -O3 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=NEWPM +// 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 // RUN: %clang -flegacy-pass-manager -fdebug-pass-structure -O0 -S -emit-llvm %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=LEGACYPM // REQUIRES: asserts @@ -32,6 +32,7 @@ // NEWPM-NEXT: ReversePostOrderFunctionAttrsPass on [module] // NEWPM-NEXT: RequireAnalysisPass<{{.*}}> on [module] // NEWPM-NEXT: ModuleToFunctionPassAdaptor on [module] +// CGProfilePass is disabled with non-integrated assemblers // NEWPM-NEXT: CGProfilePass on [module] // NEWPM-NEXT: GlobalDCEPass on [module] // NEWPM-NEXT: ConstantMergePass on [module] _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits