diff options
author | David Green <david.green@arm.com> | 2019-09-03 11:06:24 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2019-09-03 11:06:24 +0000 |
commit | 61973d978bf95059cacb7d91ef558046d349eacd (patch) | |
tree | 12c57b5dc9a677f7934f356a0575fef51b49002c /lldb/packages/Python/lldbsuite/test/commands/command/script/welcome.py | |
parent | 54904aba474723d6cdfff4d34401863bfcb68d8b (diff) | |
download | bcm5719-llvm-61973d978bf95059cacb7d91ef558046d349eacd.tar.gz bcm5719-llvm-61973d978bf95059cacb7d91ef558046d349eacd.zip |
[ARM] Invert CSEL predicates if the opposite is a simpler constant to materialise
This moves ConstantMaterializationCost into ARMBaseInstrInfo so that it can
also be used in ISel Lowering, adding codesize values to the computed costs, to
be able to compare either approximate instruction counts or codesize costs.
It also adds a HasLowerConstantMaterializationCost, which compares the
ConstantMaterializationCost of two values, returning true if the first is
smaller either in instruction count/codesize, or falling back to the other in
the case that they are equal.
This is used in constant CSEL lowering to invert the predicate if the opposite
is easier to materialise.
Differential revision: https://reviews.llvm.org/D66701
llvm-svn: 370741
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/command/script/welcome.py')
0 files changed, 0 insertions, 0 deletions