This explicitly records whether a scalar IV is needed in the
VPWidenIntOrFpInductionRecipe, to remove a dependence on the cost-model
during its ::execute.
It will also be used in D116123 to determine if a vector phi will be
generated.
Paths
| Differential D118167
[VPlan] Record whether scalar IVs are need in induction recipe. (NFC) ClosedPublic Authored by fhahn on Jan 25 2022, 11:06 AM.
Details Summary This explicitly records whether a scalar IV is needed in the It will also be used in D116123 to determine if a vector phi will be
Diff Detail
Event TimelineHerald added subscribers: tschuett, psnobl, rogfer01 and 2 others. · View Herald TranscriptJan 25 2022, 11:06 AM fhahn added a child revision: D116123: [VPlan] Handle IV vector splat using VPWidenCanonicalIV..Jan 25 2022, 11:11 AM fhahn retitled this revision from [VPlan] Record whether scalar IVs are need in induction recipe. to [VPlan] Record whether scalar IVs are need in induction recipe. (NFC).Jan 27 2022, 3:00 AM
Comment Actions Address latest comments, thanks! I unified the VPWidenIntOrFpInductionRecipe* creating in a single helper. Comment also updated. fhahn added inline comments. Comment Actions This is fine, couple of final nits; thanks for accommodating!
This revision is now accepted and ready to land.Jan 27 2022, 9:42 AM fhahn marked 2 inline comments as done. Comment ActionsAddress latest comments, thanks! I am planning to land this soon. This revision was landed with ongoing or failed builds.Jan 28 2022, 1:34 AM Closed by commit rG96400f179ff6: [VPlan] Record whether scalar IVs are need in induction recipe. (NFC) (authored by fhahn). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 403917 llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
|
While we're here, comment above is out of sync with code below.