[PATCH] D57013: [CostModel][X86] Add ICMP Predicate specific costs

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 21 04:29:32 PST 2019


RKSimon created this revision.
RKSimon added reviewers: craig.topper, lebedev.ri, spatel, nikic, ABataev.

First step towards PR40376, this patch adds support for getCmpSelInstrCost to use the (optional) Instruction CmpInst predicate to indicate the type of integer comparison we're performing and alter the costs accordingly.


Repository:
  rL LLVM

https://reviews.llvm.org/D57013

Files:
  lib/Target/X86/X86TargetTransformInfo.cpp
  test/Analysis/CostModel/X86/icmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57013.182775.patch
Type: text/x-patch
Size: 289177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190121/ba8f696b/attachment-0001.bin>


More information about the llvm-commits mailing list