[PATCH] D101726: [LV] Account for tripcount when calculation vectorization profitability
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 2 13:20:59 PDT 2021
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:5890
+ // Return the ceiling of dividing A by B.
+ auto ceil = [](uint64_t A, uint64_t B) { return (A + B - 1) / B; };
+
----------------
There is divideCeil() in MathExtras.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101726/new/
https://reviews.llvm.org/D101726
More information about the llvm-commits
mailing list