]> git.ipfire.org Git - thirdparty/gcc.git/commit
[RA]: Add flag for checking IRA in progress
authorVladimir N. Makarov <vmakarov@redhat.com>
Thu, 28 Sep 2023 13:41:18 +0000 (09:41 -0400)
committerVladimir N. Makarov <vmakarov@redhat.com>
Thu, 28 Sep 2023 13:42:02 +0000 (09:42 -0400)
commit0c8ecbcd3cf7d7187d2017ad02b663a57123b417
tree82e13c022794ade1ab5432c5bf93dec6d3001600
parentf194c684a28a5d449bd034a2c604d04ba465e4fe
[RA]: Add flag for checking IRA in progress

RISCV target developers need a flag to prevent creating
insns in IRA which can not be split after RA as they will need a
temporary reg.  The patch introduces such flag.

gcc/ChangeLog:

* rtl.h (lra_in_progress): Change type to bool.
(ira_in_progress): Add new extern.
* ira.cc (ira_in_progress): New global.
(pass_ira::execute): Set up ira_in_progress.
* lra.cc: (lra_in_progress): Change type to bool and initialize.
(lra): Use bool values for lra_in_progress.
* lra-eliminations.cc (init_elim_table): Ditto.
gcc/ira.cc
gcc/lra-eliminations.cc
gcc/lra.cc
gcc/rtl.h