Interfaces changed to return ElementCount:
- LoopVectorizationCostModel::computeMaxVF
- LoopVectorizationCostModel::computeFeasibleMaxVF
This is NFC for fixed-width vectors.
Paths
| Differential D90880
[LoopVectorizer] NFC: Return ElementCount from compute[Feasible]MaxVF ClosedPublic Authored by sdesmalen on Nov 5 2020, 1:40 PM.
Details Summary Interfaces changed to return ElementCount:
This is NFC for fixed-width vectors.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 9 2020, 9:38 AM Comment Actions Is expected to make anything work yet for scalable vectors, or is it just updating interfaces? (i.e. will the code be checked somehow to make sure it will work for scalable vectors).
Comment Actions Added assert
Comment Actions
For this patch, it is just a matter of updating the interfaces. It will be up to follow-up patches to make the code actually work for scalable vectors (such as D91077). Closed by commit rG0141f5a49d17: [LoopVectorizer] NFC: Return ElementCount from compute[Feasible]MaxVF (authored by sdesmalen). · Explain WhyNov 11 2020, 1:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 304431 llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
|
Would this TC mod check still be valid for scalable vectors? If not does it need an assert?