[PATCH] X86: add costs for 64-bit exts & truncs

Tim Northover t.p.northover at gmail.com
Thu Feb 6 03:32:10 PST 2014


Hi,

This commit adds items to the cost-model for more x86 truncs and extends, in particular involving <8 x i8>. I've also rebalanced the existing values to fit in more closely with the rest of the table (i.e. use instruction count as some kind of proxy for cost) and split it into separate AVX & AVX2 variants (as you can see, the costs appear quite different in many cases).

Does it look reasonable?

Cheers.

Tim.

http://llvm-reviews.chandlerc.com/D2715

Files:
  lib/Target/X86/X86TargetTransformInfo.cpp
  test/Analysis/CostModel/X86/cast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2715.1.patch
Type: text/x-patch
Size: 10391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140206/86b83572/attachment.bin>


More information about the llvm-commits mailing list