aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2019-11-29 22:04:21 +0000
committerVladimir Makarov <vmakarov@redhat.com>2019-11-29 22:04:21 +0000
commitb1bc045c8239a207efc55ae5a90820c005af6120 (patch)
tree2be30cfa92303d42cc397f843394f03ec808bd5f
parent98a4f8094bba71217d1a7b77b8cdd55298c002f6 (diff)
2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/92283 * lra.c (lra): Update reg notes after inheritance sub-pass and before constraint sub-pass. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278865 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/lra.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 98a93a5086e..630d388677c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
+
+ PR rtl-optimization/92283
+ * lra.c (lra): Update reg notes after inheritance sub-pass and
+ before constraint sub-pass.
+
2019-11-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/91003
diff --git a/gcc/lra.c b/gcc/lra.c
index ec20aed4492..42b58714d41 100644
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -2473,7 +2473,7 @@ lra (FILE *f)
But don't remove dead insns or change global live
info as we can undo inheritance transformations after
inheritance pseudo assigning. */
- lra_create_live_ranges (true, false);
+ lra_create_live_ranges (true, !lra_simple_p);
live_p = true;
/* If we don't spill non-reload and non-inheritance
pseudos, there is no sense to run memory-memory move
@@ -2514,6 +2514,11 @@ lra (FILE *f)
}
}
while (fails_p);
+ if (! live_p) {
+ /* We need the correct reg notes for work of constraint sub-pass. */
+ lra_create_live_ranges (true, true);
+ live_p = true;
+ }
}
/* Don't clear optional reloads bitmap until all constraints are
satisfied as we need to differ them from regular reloads. */