[PATCH] D79483: [CostModel] Replace getUserCost with getInstructionCost.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 03:31:21 PDT 2022


dmgreen added inline comments.


================
Comment at: llvm/test/Analysis/CostModel/AArch64/sve-math.ll:15
 ; LATE-LABEL: 'fadd_v2f64'
-; LATE-NEXT:  Cost Model: Found an estimated cost of 3 for instruction: %r = fadd <vscale x 2 x double> %a, %b
+; LATE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %r = fadd <vscale x 2 x double> %a, %b
 ; LATE-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: ret <vscale x 2 x double> %r
----------------
RKSimon wrote:
> @samparker Just to be clear - you're happy for me to make the latency=3 default x86-only?
I think 3 sounds pretty sensible as a first approximation - it might not be precise but I've commonly seem fp operations in that ballpark. If was used for all targets before then I would keep as all targets now.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79483



More information about the llvm-commits mailing list