aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorVladimir N. Makarov <vmakarov@redhat.com>2023-09-28 09:41:18 -0400
committerVladimir N. Makarov <vmakarov@redhat.com>2023-09-28 09:42:02 -0400
commit0c8ecbcd3cf7d7187d2017ad02b663a57123b417 (patch)
tree82e13c022794ade1ab5432c5bf93dec6d3001600 /gcc/rtl.h
parentf194c684a28a5d449bd034a2c604d04ba465e4fe (diff)
downloadgcc-0c8ecbcd3cf7d7187d2017ad02b663a57123b417.zip
gcc-0c8ecbcd3cf7d7187d2017ad02b663a57123b417.tar.gz
gcc-0c8ecbcd3cf7d7187d2017ad02b663a57123b417.tar.bz2
[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.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 102ad9b..8e59cd5 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -4108,8 +4108,11 @@ extern int epilogue_completed;
extern int reload_in_progress;
-/* Set to 1 while in lra. */
-extern int lra_in_progress;
+/* Set to true while in IRA. */
+extern bool ira_in_progress;
+
+/* Set to true while in LRA. */
+extern bool lra_in_progress;
/* This macro indicates whether you may create a new
pseudo-register. */