[all-commits] [llvm/llvm-project] 264a6d: [ARM] remove cost-kind predicate for cmp/sel costs
RotateRight via All-commits
all-commits at lists.llvm.org
Thu Nov 5 11:53:30 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 264a6df353b7e7ac4269bc10467bd2a991db3173
https://github.com/llvm/llvm-project/commit/264a6df353b7e7ac4269bc10467bd2a991db3173
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2020-11-05 (Thu, 05 Nov 2020)
Changed paths:
M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
M llvm/test/Analysis/CostModel/ARM/select.ll
Log Message:
-----------
[ARM] remove cost-kind predicate for cmp/sel costs
This is the cmp/sel sibling to D90692.
Again, the reasoning is: the throughput cost is number of instructions/uops,
so size/blended costs are identical except in special cases (for example,
fdiv or other known-expensive machine instructions or things like MVE that
may require cracking into >1 uops).
We need to check for a valid (non-null) condition type parameter because
SimplifyCFG may pass nullptr for that (and so we will crash multiple
regression tests without that check). I'm not sure if passing nullptr makes
sense, but other code in the cost model does appear to check if that param
is set or not.
Differential Revision: https://reviews.llvm.org/D90781
More information about the All-commits
mailing list