[PATCH] D11718: [TTI] Fix default costs for interleaved accesses

Renato Golin renato.golin at linaro.org
Mon Aug 3 07:02:48 PDT 2015


rengolin added a subscriber: rengolin.

================
Comment at: include/llvm/CodeGen/BasicTTIImpl.h:537
@@ -536,2 +536,3 @@
     // Firstly, the cost of load/store operation.
-    unsigned Cost = getMemoryOpCost(Opcode, VecTy, Alignment, AddressSpace);
+    unsigned Cost = static_cast<T *>(this)->getMemoryOpCost(
+        Opcode, VecTy, Alignment, AddressSpace);
----------------
nitpick: can't you cache the T * to avoid re-using the ugly static_cast?


http://reviews.llvm.org/D11718







More information about the llvm-commits mailing list