[CostModel] remove cost-kind predicate for funnel shift costs
authorSanjay Patel <spatel@rotateright.com>
Wed, 28 Oct 2020 17:23:22 +0000 (13:23 -0400)
committerSanjay Patel <spatel@rotateright.com>
Wed, 28 Oct 2020 18:02:34 +0000 (14:02 -0400)
commit9df32c9044aa051bb12277388956ac7a828d4ff8
tree6aad456a74def0259f256ca89afaf1d1e26c655c
parent87f03e13ce0e840d7eb9a4a6d805d117fe165672
[CostModel] remove cost-kind predicate for funnel shift costs

Completing the series of FIXME removals for special-case intrinsics:
50dfa19cc799
f2c25c70791d
c963bde0152a
01ea93d85d6e

This one looks quite different than the others. The size/blended
cost is still potentially very far off from the throughput cost,
but this is hopefully not worse on the whole. It looks like the
underlying costs for the expanded shift/logic have their own
cost-kind limitations. Also, we are not asking the target if
it has a legal funnel shift op, so we just assume that the
intrinsic gets expanded.
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
llvm/test/Analysis/CostModel/X86/intrinsic-cost-kinds.ll