Split off mask creation for tail folding and proactively create the mask for
the header block.
This simplifies createBlockInMask.
Differential D157037
[VPlan] Proactively create mask for tail-folding up-front (NFCI). fhahn on Aug 3 2023, 2:21 PM. Authored by
Details Split off mask creation for tail folding and proactively create the mask for This simplifies createBlockInMask.
Diff Detail
Event TimelineComment Actions
"always" >> "proactively"? Down the road tail folding should be considered as a VPlan2VPlan transformation along with masking/predication.
Comment Actions Address latest comments, thanks!
Agreed! This would effectively require adjusting all existing masks with the loop mask.
Comment Actions I shared a patch to perform tail-folding as VPlan2VPlan transform in D157713. It requires a bit more work to get the right APIs and things into place, but separating out the header mask creation code as in the current patch should be good first step in that direction.
Comment Actions Address latest comments, thanks!
Comment Actions This looks good to me, adding some thoughts that could be addresses now or later.
|
nit (independent of this patch): more accurately prefixed getOrCreate.