Skip to content

Commit 000854e

Browse files
committed
comment
Created using spr 1.3.4
1 parent 0b2b44e commit 000854e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,10 @@ static void addSanitizers(const Triple &TargetTriple,
752752
}
753753

754754
if (ClRemoveTraps) {
755-
// We can optimize after inliner, and PGO profile matching, which are part
756-
// of `buildModuleSimplificationPipeline`. The hook below is called after
757-
// that, from `buildModuleOptimizationPipeline`.
755+
// We can optimize after inliner, and PGO profile matching. The hook below
756+
// is called from `buildModuleOptimizationPipeline` just after profile use,
757+
// and inliner is a part of `buildModuleSimplificationPipeline`, which is
758+
// before `buildModuleOptimizationPipeline`.
758759
PB.registerOptimizerEarlyEPCallback([&](ModulePassManager &MPM,
759760
OptimizationLevel Level) {
760761
FunctionPassManager FPM;

0 commit comments

Comments
 (0)