[PATCH] D20873: [TTI] Refine default cost for interleaved load groups with gaps
Matthew Simpson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 09:24:34 PDT 2016
mssimpso marked an inline comment as done.
================
Comment at: include/llvm/CodeGen/BasicTTIImpl.h:552
@@ +551,3 @@
+ // Return the ceiling of dividing A by B.
+ auto ceil = [](unsigned A, unsigned B) { return (A + B - 1) / B; };
+
----------------
A + B should never wrap, so this sounds good to me.
http://reviews.llvm.org/D20873
More information about the llvm-commits
mailing list