[PATCH] D107223: [VPlan] Use defined and ops VPValues to print VPInterleaveRecipe.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 2 14:12:47 PDT 2021
fhahn added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:9552
+ unsigned OpIdx = 0;
+ for (unsigned i = 0; i < IG->getFactor(); ++i) {
+ if (!IG->getMember(i))
----------------
Ayal wrote:
> Would have been nice to iterate over the recipe's operands and/or def VPValues, instead of calling getOperand()/getVPValue() for each, but the former does not tell where the gaps are.
Agreed! Perhaps it would be worth adding that information to the recipe, removing the requirement to reference the interleave group?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107223/new/
https://reviews.llvm.org/D107223
More information about the llvm-commits
mailing list