This is just small refactoring to minimize changes in upcoming patch.
In the next path I'm going to introduce changes into heuristic for vectorization of "tiny trip count" loops.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
372 | nit: can simply check if (TC), or fold into if (Optional<unsigned> TC = getLoopEstimatedTripCount(L)) return TC; as done above and below; possibly combining it with the previous if. |
Comment Actions
Thanks Hideki & Ayal for quick response!
If you are satisfied with the current version please go ahead and commit it since I'm not permitted to do that myself.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
372 | Thanks for noting. Done! |
Comment Actions
This one blocks subsequent patches. Could anyone assist in committing this one since I'm not a committer yet. Appreciated.
nit: can simply check if (TC), or fold into
as done above and below; possibly combining it with the previous if.