File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -92,16 +92,15 @@ class UnrollState {
9292 void addRecipeForPart (VPRecipeBase *OrigR, VPRecipeBase *CopyR,
9393 unsigned Part) {
9494 for (const auto &[Idx, VPV] : enumerate(OrigR->definedValues ())) {
95- const auto &[V, _] = VPV2Parts.try_emplace (VPV, SmallVector<VPValue *>() );
95+ const auto &[V, _] = VPV2Parts.try_emplace (VPV);
9696 assert (V->second .size () == Part - 1 && " earlier parts not set" );
9797 V->second .push_back (CopyR->getVPValue (Idx));
9898 }
9999 }
100100
101101 // / Given a uniform recipe \p R, add it for all parts.
102102 void addUniformForAllParts (VPSingleDefRecipe *R) {
103- const auto &[V, Inserted] =
104- VPV2Parts.try_emplace (R, SmallVector<VPValue *>());
103+ const auto &[V, Inserted] = VPV2Parts.try_emplace (R);
105104 assert (Inserted && " uniform value already added" );
106105 for (unsigned Part = 0 ; Part != UF; ++Part)
107106 V->second .push_back (R);
You can’t perform that action at this time.
0 commit comments