Skip to content

Commit a4773d9

Browse files
committed
Changed PGOOptions check for CSPGO
1 parent 293b095 commit a4773d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static bool shouldRegisterPGOPasses(const TargetMachine &TM,
237237
const PGOOptions &Options = *TM.getPGOOption();
238238
return Options.Action == PGOOptions::PGOAction::IRUse ||
239239
Options.Action == PGOOptions::PGOAction::SampleUse ||
240-
Options.CSAction != PGOOptions::CSPGOAction::NoCSAction;
240+
Options.CSAction == PGOOptions::CSPGOAction::CSIRUse;
241241
}
242242
return false;
243243
}

0 commit comments

Comments
 (0)