@@ -1356,7 +1356,6 @@ static DenseSet<VPValue *> collectAllHeaderMasks(VPlan &Plan) {
1356
1356
// Walk users of wide canonical IVs and collect to all compares of the form
1357
1357
// (ICMP_ULE, WideCanonicalIV, backedge-taken-count).
1358
1358
DenseSet<VPValue *> HeaderMasks;
1359
- VPValue *BTC = Plan.getOrCreateBackedgeTakenCount ();
1360
1359
for (auto *Wide : WideCanonicalIVs) {
1361
1360
for (VPUser *U : SmallVector<VPUser *>(Wide->users ())) {
1362
1361
auto *HeaderMask = dyn_cast<VPInstruction>(U);
@@ -1408,7 +1407,7 @@ void VPlanTransforms::addActiveLaneMask(
1408
1407
static void transformRecipestoEVLRecipes (VPlan &Plan, VPValue &EVL) {
1409
1408
VPDominatorTree VPDT;
1410
1409
VPDT.recalculate (Plan);
1411
- DenseSet <VPRecipeBase *> ToRemove;
1410
+ SmallVector <VPRecipeBase *> ToRemove;
1412
1411
1413
1412
ReversePostOrderTraversal<VPBlockDeepTraversalWrapper<VPBlockBase *>> RPOT (
1414
1413
Plan.getEntry ());
@@ -1426,14 +1425,14 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
1426
1425
auto *N = new VPWidenLoadEVLRecipe (L, &EVL, NewMask);
1427
1426
N->insertBefore (L);
1428
1427
L->replaceAllUsesWith (N);
1429
- ToRemove.insert (L);
1428
+ ToRemove.push_back (L);
1430
1429
})
1431
1430
.Case <VPWidenStoreRecipe>([&](VPWidenStoreRecipe *S) {
1432
1431
VPValue *NewMask =
1433
1432
HeaderMasks.contains (S->getMask ()) ? nullptr : S->getMask ();
1434
1433
auto *N = new VPWidenStoreEVLRecipe (S, &EVL, NewMask);
1435
1434
N->insertBefore (S);
1436
- ToRemove.insert (S);
1435
+ ToRemove.push_back (S);
1437
1436
})
1438
1437
.Case <VPWidenRecipe>([&](VPWidenRecipe *W) {
1439
1438
unsigned Opcode = W->getOpcode ();
@@ -1443,7 +1442,7 @@ static void transformRecipestoEVLRecipes(VPlan &Plan, VPValue &EVL) {
1443
1442
auto *N = new VPWidenEVLRecipe (W, EVL);
1444
1443
N->insertBefore (W);
1445
1444
W->replaceAllUsesWith (N);
1446
- ToRemove.insert (W);
1445
+ ToRemove.push_back (W);
1447
1446
});
1448
1447
}
1449
1448
}
0 commit comments