[PATCH] D97466: NFC: Change getUserCost to return InstructionCost

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 28 10:42:39 PST 2021


dmgreen added inline comments.


================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfoImpl.h:1029
+        return CostKind == TTI::TCK_RecipThroughput
+                   ? InstructionCost::getInvalid()
+                   : 1;
----------------
This seems strange. Does it need to return an invalid cost? Or can it just return a cost of 1 for all cost kinds?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97466



More information about the llvm-commits mailing list