@@ -1335,7 +1335,6 @@ static DenseSet<VPValue *> collectAllHeaderMasks(VPlan &Plan) {
1335
1335
// Walk users of wide canonical IVs and collect to all compares of the form
1336
1336
// (ICMP_ULE, WideCanonicalIV, backedge-taken-count).
1337
1337
DenseSet<VPValue *> HeaderMasks;
1338
- VPValue *BTC = Plan.getOrCreateBackedgeTakenCount ();
1339
1338
for (auto *Wide : WideCanonicalIVs) {
1340
1339
for (VPUser *U : SmallVector<VPUser *>(Wide->users ())) {
1341
1340
auto *HeaderMask = dyn_cast<VPInstruction>(U);
@@ -1387,7 +1386,7 @@ void VPlanTransforms::addActiveLaneMask(
1387
1386
static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL) {
1388
1387
VPDominatorTree VPDT;
1389
1388
VPDT.recalculate (Plan);
1390
- DenseSet <VPRecipeBase *> ToRemove;
1389
+ SmallVector <VPRecipeBase *> ToRemove;
1391
1390
1392
1391
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT (
1393
1392
Plan.getEntry ());
@@ -1405,14 +1404,14 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
1405
1404
auto *N = new VPWidenLoadEVLRecipe (L, &EVL, NewMask);
1406
1405
N->insertBefore (L);
1407
1406
L->replaceAllUsesWith (N);
1408
- ToRemove.insert (L);
1407
+ ToRemove.push_back (L);
1409
1408
})
1410
1409
.Case <VPWidenStoreRecipe>([&](VPWidenStoreRecipe *S) {
1411
1410
VPValue *NewMask =
1412
1411
HeaderMasks.contains (S->getMask ()) ? nullptr : S->getMask ();
1413
1412
auto *N = new VPWidenStoreEVLRecipe (S, &EVL, NewMask);
1414
1413
N->insertBefore (S);
1415
- ToRemove.insert (S);
1414
+ ToRemove.push_back (S);
1416
1415
})
1417
1416
.Case <VPWidenRecipe>([&](VPWidenRecipe *W) {
1418
1417
unsigned Opcode = W->getOpcode ();
@@ -1422,7 +1421,7 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
1422
1421
auto *N = new VPWidenEVLRecipe (W, EVL);
1423
1422
N->insertBefore (W);
1424
1423
W->replaceAllUsesWith (N);
1425
- ToRemove.insert (W);
1424
+ ToRemove.push_back (W);
1426
1425
});
1427
1426
}
1428
1427
}
0 commit comments