Skip to content

Commit 7b885fd

Browse files
committed
run pass in CSFDO use pipeline
1 parent e1ae305 commit 7b885fd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Passes/PassBuilderPipelines.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,8 @@ PassBuilder::buildModuleSimplificationPipeline(OptimizationLevel Level,
11461146

11471147
if (EnablePGOForceFunctionAttrs && PGOOpt &&
11481148
(PGOOpt->Action == PGOOptions::SampleUse ||
1149-
PGOOpt->Action == PGOOptions::IRUse))
1149+
PGOOpt->Action == PGOOptions::IRUse ||
1150+
PGOOpt->CSAction == PGOOptions::CSIRUse))
11501151
MPM.addPass(PGOForceFunctionAttrsPass(PGOOpt->ColdOptType));
11511152

11521153
MPM.addPass(AlwaysInlinerPass(/*InsertLifetimeIntrinsics=*/true));

0 commit comments

Comments
 (0)