[PATCH] D47595: [VPlan] Move recipe construction to VPRecipeBuilder.

Diego Caballero via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 1 09:14:54 PDT 2018


dcaballe accepted this revision.
dcaballe added a comment.
This revision is now accepted and ready to land.

Thanks, Florian! LGTM!
Please wait until we finish the other two related reviews to commit it, in case we have to change something else.

Thanks,
Diego



================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:6481
 
-bool LoopVectorizationPlanner::getDecisionAndClampRange(
+bool VPRecipeBuilder::getDecisionAndClampRange(
     const std::function<bool(unsigned)> &Predicate, VFRange &Range) {
----------------
fhahn wrote:
> dcaballe wrote:
> > Not a big deal but I wonder if it would be better to move this outside of VPRecipeBuilder since it's not strictly creating or manipulating any recipe and it will be needed eventually in the VPlan native path.
> Yep I think it would be better to move it somewhere else. I've moved it back to a static method in LoopVectorizationPlanner. Do you think there's a better place?
I think it's OK for now. We already have a VPBlockUtils and I envision a VPInstructionUtils. We should also have something similar for more generic stuff but we can introduce it when we have a clearer picture of it.


https://reviews.llvm.org/D47595





More information about the llvm-commits mailing list