aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2023-10-24 11:01:52 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2023-10-24 11:01:52 +0100
commit21416caf221fae4351319ef8ca8d41c0234bdfa7 (patch)
tree051c4267cdef6c6835509bbcb472e0dd61faafa0 /gcc/tree-ssa-phiopt.cc
parentb632a516a0448818a25f35e15a4bf0a3187af359 (diff)
downloadgcc-21416caf221fae4351319ef8ca8d41c0234bdfa7.zip
gcc-21416caf221fae4351319ef8ca8d41c0234bdfa7.tar.gz
gcc-21416caf221fae4351319ef8ca8d41c0234bdfa7.tar.bz2
aarch64: Define TARGET_INSN_COST
This patch adds a bare-bones TARGET_INSN_COST. See the comment in the patch for the rationale. Just to get a flavour for how much difference it makes, I tried compiling the testsuite with -Os -fno-schedule-insns{,2} and seeing what effect the patch had on the number of instructions. Very few tests changed, but all the changes were positive: Tests Good Bad Delta Best Worst Median ===== ==== === ===== ==== ===== ====== 19 19 0 -177 -52 -1 -4 The change for -O2 was even smaller, but more mixed: Tests Good Bad Delta Best Worst Median ===== ==== === ===== ==== ===== ====== 6 3 3 -8 -9 6 -2 There were no obvious effects on SPEC CPU2017. The patch is needed to avoid a regression with a later change. gcc/ * config/aarch64/aarch64.cc (aarch64_insn_cost): New function. (TARGET_INSN_COST): Define.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions