[PATCH] D25333: [LV] Avoid rounding errors for predicated instruction costs

Gil Rapaport via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 08:09:47 PDT 2016


gilr added inline comments.


================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:6528
+      // models a copy at the end of each predicated block.
+      auto PhiCost = VF * TTI.getCFInstrCost(Instruction::PHI);
+
----------------
Not sure the use of "auto" instead of "unsigned" adheres to [[ http://llvm.org/docs/CodingStandards.html#use-auto-type-deduction-to-make-code-more-readable | the coding guidelines for auto ]].


https://reviews.llvm.org/D25333





More information about the llvm-commits mailing list