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 b5bcdb5 commit c489d33Copy full SHA for c489d33
llvm/lib/Transforms/Vectorize/VPlan.h
@@ -291,8 +291,7 @@ struct VPTransformState {
291
292
/// Set the generated scalar \p V for \p Def and the given \p Lane.
293
void set(VPValue *Def, Value *V, const VPLane &Lane) {
294
- auto Iter = Data.VPV2Scalars.insert({Def, {}});
295
- auto &Scalars = Iter.first->second;
+ auto &Scalars = Data.VPV2Scalars[Def];
296
unsigned CacheIdx = Lane.mapToCacheIndex(VF);
297
if (Scalars.size() <= CacheIdx)
298
Scalars.resize(CacheIdx + 1);
0 commit comments