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