[PATCH] [TTI/CostModel] improve TTI::getGEPCost and use it in CostModel::getInstructionCost

Jingyue Wu jingyue at google.com
Sun Jun 7 22:34:05 PDT 2015


================
Comment at: test/Transforms/LoopVectorize/X86/metadata-enable.ll:63
@@ -62,3 +62,3 @@
   %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
-  %exitcond = icmp eq i64 %indvars.iv.next, 32
+  %exitcond = icmp eq i64 %indvars.iv.next, 64
   br i1 %exitcond, label %for.end, label %for.body, !llvm.loop !0
----------------
After the change to `getGEPCost`, the loop size is reduced. Bump the trip count so that the loops still cannot be fully unrolled.

http://reviews.llvm.org/D9819

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list