This is an archive of the discontinued LLVM Phabricator instance.

[CostModel][X86] Add ICMP Predicate specific costs
ClosedPublic

Authored by RKSimon on Jan 21 2019, 4:28 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

RKSimon created this revision.Jan 21 2019, 4:28 AM
This revision is now accepted and ready to land.Jan 21 2019, 11:48 AM
This revision was automatically updated to reflect the committed changes.