This patch changes the type of Start, End in VFRange to be an ElementCount
instead of unsigned. This is done as preparation to make VPlans for
scalable vectors, but is otherwise NFC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This looks simple enough to me. I guess it does mean we can't use the same vplan for representing scalable and non-scalable vectorization plans, but that's probably a sensible thing to do.
LGTM.
Comment Actions
LGTM
llvm/lib/Transforms/Vectorize/VPlan.h | ||
---|---|---|
75 | Now that we have a constructor here, can we also assert that Start is a power-of-2? |
Comment Actions
Other than the minor nit, LGTM.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
7187 | Nit: Add an isEmpty() method to VFRange. Removes the burden of knowing the condition for an empty range. |
Nit: Add an isEmpty() method to VFRange. Removes the burden of knowing the condition for an empty range.