[PATCH] D82091: [ARM][CostModel] Select instruction costs.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 04:08:33 PDT 2020


samparker added inline comments.


================
Comment at: llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp:745
+  // Override cost kind at minsize.
+  if (ST->hasMinSize())
+    CostKind = TTI::TCK_CodeSize;
----------------
dmgreen wrote:
> I feel like this should be done by the calling function, not at this level. We should try and be reliable and give the user what they ask for, at least not special case this single function for codesize.
> 
> I don't feel particularly strongly about it though, if you did feel like arguing the point.
No, I agree, this was just the lazy way.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82091/new/

https://reviews.llvm.org/D82091



More information about the llvm-commits mailing list