[PATCH] D20873: [TTI] Refine default cost for interleaved load groups with gaps

silviu.baranga@arm.com via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 3 08:37:15 PDT 2016


sbaranga added a subscriber: sbaranga.

================
Comment at: include/llvm/CodeGen/BasicTTIImpl.h:560
@@ +559,3 @@
+    // allowed to have gaps.
+    unsigned NumLegalInsts = getTLI()->getTypeLegalizationCost(DL, VecTy).first;
+    if (Opcode == Instruction::Load && NumLegalInsts > 1) {
----------------
It might be better to use the returned MVT instead of the returned cost (which might not be related to the number of legal sub-vectors of our wide type).


http://reviews.llvm.org/D20873





More information about the llvm-commits mailing list