[PATCH] D115016: [CostModel][X86] Add i64 mul cost for avx as 1cy

Haohai, Wen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 17:55:13 PST 2021


HaohaiWen created this revision.
Herald added subscribers: pengfei, hiraditya.
HaohaiWen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

i64 mul cost is 1cy for most cpu that support avx. Currently all
x86 cpu uses i64 mul cost in X64 cost table represents a worst
case which is not true for most recent cpus.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115016

Files:
  llvm/lib/Target/X86/X86TargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/X86/arith-fix.ll
  llvm/test/Analysis/CostModel/X86/arith-overflow.ll
  llvm/test/Analysis/CostModel/X86/arith.ll
  llvm/test/Analysis/CostModel/X86/mul.ll
  llvm/test/Analysis/CostModel/X86/rem.ll
  llvm/test/Transforms/SLPVectorizer/X86/arith-fix.ll
  llvm/test/Transforms/SLPVectorizer/X86/arith-mul.ll
  llvm/test/Transforms/SLPVectorizer/X86/powof2mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115016.391512.patch
Type: text/x-patch
Size: 176953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211203/f0cf5119/attachment-0001.bin>


More information about the llvm-commits mailing list