File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ void MCSOptimization::visitCallInst(llvm::CallInst& I)
182
182
for (auto BB : useBlocks)
183
183
{
184
184
std::vector<LdmsInstrinsic*> ldmsInstsToMove;
185
+ std::vector<LdmsInstrinsic*> ldmsInstsToClub;
185
186
for (auto inst = BB->begin (); inst != BB->end (); inst++)
186
187
{
187
188
if (LdmsInstrinsic * ldmsIntr = dyn_cast<LdmsInstrinsic>(inst))
@@ -203,7 +204,7 @@ void MCSOptimization::visitCallInst(llvm::CallInst& I)
203
204
204
205
while (!allInstsWillBeMoved)
205
206
{
206
- std::vector<LdmsInstrinsic*> ldmsInstsToClub;
207
+ ldmsInstsToClub. clear () ;
207
208
// Threshold is more than # of insts that are to be moved. So move all.
208
209
if (instClubThreshold >= static_cast <int >(ldmsInstsToMove.size ()))
209
210
{
You can’t perform that action at this time.
0 commit comments