Skip to content

Commit 0b2b44e

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang/lib/CodeGen/BackendUtil.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,9 @@ 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`.
755758
PB.registerOptimizerEarlyEPCallback([&](ModulePassManager &MPM,
756759
OptimizationLevel Level) {
757760
FunctionPassManager FPM;

0 commit comments

Comments
 (0)