aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2-aix.h
diff options
context:
space:
mode:
authorAlex Coplan <alex.coplan@arm.com>2023-10-16 14:14:40 +0000
committerAlex Coplan <alex.coplan@arm.com>2023-10-19 11:12:23 +0100
commit505f1202e3a1a1aecd0df10d0f1620df6fea4ab5 (patch)
tree615dfc8fedf33cf5c173b8da549d460ceb1e1230 /gcc/collect2-aix.h
parentba230aa1b855c32d5414183b604e45ce836fb532 (diff)
downloadgcc-505f1202e3a1a1aecd0df10d0f1620df6fea4ab5.zip
gcc-505f1202e3a1a1aecd0df10d0f1620df6fea4ab5.tar.gz
gcc-505f1202e3a1a1aecd0df10d0f1620df6fea4ab5.tar.bz2
rtl-ssa: Support inferring uses of mem in change_insns
Currently, rtl_ssa::change_insns requires all new uses and defs to be specified explicitly. This turns out to be rather inconvenient for forming load pairs in the new aarch64 load pair pass, as the pass has to determine which mem def the final load pair consumes, and then obtain or create a suitable use (i.e. significant bookkeeping, just to keep the RTL-SSA IR consistent). It turns out to be much more convenient to allow change_insns to infer which def is consumed and create a suitable use of mem itself. This patch does that. gcc/ChangeLog: * rtl-ssa/changes.cc (function_info::finalize_new_accesses): Add new parameter to give final insn position, infer use of mem if it isn't specified explicitly. (function_info::change_insns): Pass down final insn position to finalize_new_accesses. * rtl-ssa/functions.h: Add parameter to finalize_new_accesses.
Diffstat (limited to 'gcc/collect2-aix.h')
0 files changed, 0 insertions, 0 deletions