aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-constraints.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2021-03-26 16:08:35 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2021-03-26 16:08:35 +0000
commited17ad5ea1cb302951f582ae8edd1afc9c014302 (patch)
tree90d197312848ad2e5c486366b558faa4a850b79f /gcc/lra-constraints.c
parent3b924b0d7c0218956dbc2ce0ca2740e8923c2c4a (diff)
downloadgcc-ed17ad5ea1cb302951f582ae8edd1afc9c014302.zip
gcc-ed17ad5ea1cb302951f582ae8edd1afc9c014302.tar.gz
gcc-ed17ad5ea1cb302951f582ae8edd1afc9c014302.tar.bz2
aarch64: Detect scalar extending loads
If the scalar code does an integer load followed by an integer extension, we've tended to cost that as two separate operations, even though the extension is probably going to be free in practice. This patch treats the extension as having zero cost, like we already do for extending SVE loads. Like with previous patches, this one only becomes active if a CPU selects use_new_vector_costs. It should therefore have a very low impact on other CPUs. gcc/ * config/aarch64/aarch64.c (aarch64_detect_scalar_stmt_subtype): New function. (aarch64_add_stmt_cost): Call it.
Diffstat (limited to 'gcc/lra-constraints.c')
0 files changed, 0 insertions, 0 deletions