Skip to content

Commit 73a4120

Browse files
committed
comment
Created using spr 1.3.4
1 parent 8c5ad5c commit 73a4120

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
@@ -751,9 +751,10 @@ static void addSanitizers(const Triple &TargetTriple,
751751
}
752752

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

0 commit comments

Comments
 (0)