]> git.ipfire.org Git - thirdparty/gcc.git/commit
mode-switching: Pass the set of live registers to the after hook
authorRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:58 +0000 (17:28 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Sat, 11 Nov 2023 17:28:58 +0000 (17:28 +0000)
commit93d65f39bc5c3dc318deb6da0e3633f3a4c6c34d
tree0864cf7c8b27f6e143d70aa3ad2536890f5e6ab2
parent29d3e1892ebec8abce784077d1f1a3e21d763218
mode-switching: Pass the set of live registers to the after hook

This patch passes the set of live hard registers to the after hook,
like the previous one did for the needed hook.

gcc/
* target.def (mode_switching.after): Add a regs_live parameter.
* doc/tm.texi: Regenerate.
* config/epiphany/epiphany-protos.h (epiphany_mode_after): Update
accordingly.
* config/epiphany/epiphany.cc (epiphany_mode_needed): Likewise.
(epiphany_mode_after): Likewise.
* config/i386/i386.cc (ix86_mode_after): Likewise.
* config/riscv/riscv.cc (riscv_mode_after): Likewise.
* config/sh/sh.cc (sh_mode_after): Likewise.
* mode-switching.cc (optimize_mode_switching): Likewise.
gcc/config/epiphany/epiphany-protos.h
gcc/config/epiphany/epiphany.cc
gcc/config/i386/i386.cc
gcc/config/riscv/riscv.cc
gcc/config/sh/sh.cc
gcc/doc/tm.texi
gcc/mode-switching.cc
gcc/target.def