Add an iterator to iterate over all VFs in VFRange. This simplifies some
existing code and allows using all_of,any_of and none_of on a VFRange.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Nice cleanup, minor nits.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
8054 | nit (Independent of this patch): can iterate over entire Range, rather than excluding its start element. | |
8908 | nit (here and below): are the parentheses needed? | |
llvm/lib/Transforms/Vectorize/VPlan.h | ||
125 | TODO: instead of implicitly bumping End to next power-of-2 here, set it to MaxVFTimesTwo originally instead of MaxVFPlusOne and assert both Start and End are powers-of-two upon construction above? |
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
8054 | Excluding the start seems to be a minor optimization. I can remove it, but not sure if it improves things by much? | |
8908 | Remove all these in the committed version, thanks! | |
llvm/lib/Transforms/Vectorize/VPlan.h | ||
125 | This should be done in c7a34d355a61396d438ea095e1e6996cde1ef880, thanks! |
nit (Independent of this patch): can iterate over entire Range, rather than excluding its start element.