]> gcc.gnu.org Git - gcc.git/commit
[PR104637] LRA: Split hard regs as many as possible on one subpass
authorVladimir N. Makarov <vmakarov@redhat.com>
Mon, 28 Feb 2022 21:43:50 +0000 (16:43 -0500)
committerVladimir N. Makarov <vmakarov@redhat.com>
Tue, 14 Jun 2022 15:49:24 +0000 (11:49 -0400)
commit688703569091edfd0400523d85cbb44d15aa61ea
treec5207f18d270ae2e673fdb60d21a477b220e3811
parent2c12aaed1fb410c400129b2d65ec951523f8255a
[PR104637] LRA: Split hard regs as many as possible on one subpass

LRA hard reg split subpass is a small subpass used as the last
resort for LRA when it can not assign a hard reg to a reload
pseudo by other ways (e.g. by spilling non-reload pseudos).  For
simplicity the subpass works on one split base (as each split
changes pseudo live range info).  In this case it results in
reaching maximal possible number of subpasses.  The patch
implements as many non-overlapping hard reg splits
splits as possible on each subpass.

gcc/ChangeLog:

PR rtl-optimization/104637
* lra-assigns.c (lra_split_hard_reg_for): Split hard regs as many
as possible on one subpass.

gcc/testsuite/ChangeLog:

PR rtl-optimization/104637
* gcc.target/i386/pr104637.c: New.
gcc/lra-assigns.c
gcc/testsuite/gcc.target/i386/pr104637.c [new file with mode: 0644]
This page took 0.065066 seconds and 6 git commands to generate.