We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b3bc7 commit a8f626dCopy full SHA for a8f626d
IGC/Compiler/Optimizer/MCSOptimization.cpp
@@ -182,6 +182,7 @@ void MCSOptimization::visitCallInst(llvm::CallInst& I)
182
for (auto BB : useBlocks)
183
{
184
std::vector<LdmsInstrinsic*> ldmsInstsToMove;
185
+ std::vector<LdmsInstrinsic*> ldmsInstsToClub;
186
for (auto inst = BB->begin(); inst != BB->end(); inst++)
187
188
if (LdmsInstrinsic * ldmsIntr = dyn_cast<LdmsInstrinsic>(inst))
@@ -203,7 +204,7 @@ void MCSOptimization::visitCallInst(llvm::CallInst& I)
203
204
205
while (!allInstsWillBeMoved)
206
- std::vector<LdmsInstrinsic*> ldmsInstsToClub;
207
+ ldmsInstsToClub.clear();
208
//Threshold is more than # of insts that are to be moved. So move all.
209
if (instClubThreshold >= static_cast<int>(ldmsInstsToMove.size()))
210
0 commit comments