Added TreeEntry::getVectorFactor to get the final vectotization factor
to simplify the code.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
1683 | "Final" is a bit ambiguous, could you explain a bit more in the comment what this refers to? My understanding is that this refers to the VF used when we generated code, and it may differ from Scalars.size() if this node contains scalars that repeat. |
"Final" is a bit ambiguous, could you explain a bit more in the comment what this refers to? My understanding is that this refers to the VF used when we generated code, and it may differ from Scalars.size() if this node contains scalars that repeat.