diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-12-02 09:46:51 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2019-12-02 09:46:51 +0000 |
commit | 9d5bec7646fdc120087e39ba6ac01b5c299bf8aa (patch) | |
tree | 00f30fd30ba8b51d3af1a92679caff966f093489 /gcc/lra.c | |
parent | bf31886696cb7906760c6d7d24fab82d5bb646ba (diff) | |
parent | 02e688f0e850db35366a26a525e2876f93ffafd6 (diff) |
c++-coroutines - merge trunk r278894.
2019-12-02 Iain Sandoe <iain@sandoe.co.uk>
Merge trunk r278894.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/c++-coroutines@278895 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra.c')
-rw-r--r-- | gcc/lra.c | 7 |
1 files changed, 6 insertions, 1 deletions
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. */ |