Skip to content

Commit cdbef27

Browse files
authored
[LV] Use DenseMap::keys to improve code (NFC) (#156014)
1 parent a871207 commit cdbef27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8717,7 +8717,7 @@ VPlanPtr LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(
87178717
// to remove the need to keep a map of masks beyond the predication
87188718
// transform.
87198719
RecipeBuilder.updateBlockMaskCache(Old2New);
8720-
for (const auto &[Old, _] : Old2New)
8720+
for (VPValue *Old : Old2New.keys())
87218721
Old->getDefiningRecipe()->eraseFromParent();
87228722

87238723
assert(isa<VPRegionBlock>(Plan->getVectorLoopRegion()) &&

0 commit comments

Comments
 (0)