We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a44ee8e commit 2c0f463Copy full SHA for 2c0f463
llvm/lib/Transforms/Vectorize/VPlanUnroll.cpp
@@ -297,12 +297,12 @@ void UnrollState::unrollRecipeByUF(VPRecipeBase &R) {
297
if (auto *Red = dyn_cast<VPReductionRecipe>(&R)) {
298
auto *Phi = cast<VPReductionPHIRecipe>(R.getOperand(0));
299
if (Phi->isOrdered()) {
300
- auto Ins = VPV2Parts.insert({Phi, {}});
+ auto &Parts = VPV2Parts[Phi];
301
if (Part == 1) {
302
- Ins.first->second.clear();
303
- Ins.first->second.push_back(Red);
+ Parts.clear();
+ Parts.push_back(Red);
304
}
305
- Ins.first->second.push_back(Copy->getVPSingleValue());
+ Parts.push_back(Copy->getVPSingleValue());
306
Phi->setOperand(1, Copy->getVPSingleValue());
307
308
0 commit comments