]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove global call sets: haifa-sched.c
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 30 Sep 2019 16:20:48 +0000 (16:20 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 30 Sep 2019 16:20:48 +0000 (16:20 +0000)
commit7450506b5d48642a71459cfc24efcea6ca58e97e
treebb5ef760e2227bbfc2748b3d40676f2bf09f9403
parenta4dfaad2e5594d871fe00a1116005e28f95d644e
Remove global call sets: haifa-sched.c

The code patched here is counting how many registers the current
function would need to save in the prologue before it uses them.
The code is called per function, so using crtl is OK.

2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* haifa-sched.c: Include function-abi.h.
(alloc_global_sched_pressure_data): Use crtl->abi to check whether
the function would need to save a register before using it.

From-SVN: r276324
gcc/ChangeLog
gcc/haifa-sched.c