[PATCH] D80012: [CostModel] Unify Intrinsic Costs.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 18 05:20:03 PDT 2020


samparker marked an inline comment as done.
samparker added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp:563
                                       TTI::TargetCostKind CostKind) {
+  if (ICA.getID() == Intrinsic::fabs)
+    return 0;
----------------
samparker wrote:
> arsenm wrote:
> > Previously this would have been reported from TLI.isFAbsFree, but I don't see that check getting dropped here?
> I don't recall seeing a check like that... but it makes sense. Having the base implementation call it should work.
Okay, so now I see it and it would seem that the logic has changed because of the split and merge with this and D79941. AMDGPUISelLowering doesn't report that fabs vectors are free, so which is true?


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

https://reviews.llvm.org/D80012





More information about the llvm-commits mailing list