aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-analysis.c
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2019-10-18 19:02:43 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2019-10-18 19:02:43 +0000
commit0a67306e3cc2adfe0ef2fe313a86f57141ab57b2 (patch)
treebc6d57abbdd9f82006e4b9f3d43b5b08b06d27c7 /gcc/ipa-inline-analysis.c
parent1e271beeec163b124eb424c0c9918b045e289c06 (diff)
downloadgcc-0a67306e3cc2adfe0ef2fe313a86f57141ab57b2.zip
gcc-0a67306e3cc2adfe0ef2fe313a86f57141ab57b2.tar.gz
gcc-0a67306e3cc2adfe0ef2fe313a86f57141ab57b2.tar.bz2
[arm] Correctly cost addition with a carry-in
The cost routine for Arm and Thumb2 was not recognising the idioms that describe the addition with carry, this results in the instructions appearing more expensive than they really are, which occasionally can lead to poor choices by combine. Recognising all the possible variants is a little trickier than normal because the expressions can become complex enough that this is no single canonical from. * config/arm/arm.c (strip_carry_operation): New function. (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in for SImode. From-SVN: r277172
Diffstat (limited to 'gcc/ipa-inline-analysis.c')
0 files changed, 0 insertions, 0 deletions