From: Vladimir Makarov Date: Fri, 29 Nov 2019 22:04:21 +0000 (+0000) Subject: re PR rtl-optimization/92283 (454.calculix miscomparison since r276645 with -O2 ... X-Git-Tag: upstream/12.2.0~19952 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12981e9be2443e5529c2de4bddd731e0fdc5e075;p=platform%2Fupstream%2Fgcc.git re PR rtl-optimization/92283 (454.calculix miscomparison since r276645 with -O2 -march=znver2) 2019-11-29 Vladimir Makarov PR rtl-optimization/92283 * lra.c (lra): Update reg notes after inheritance sub-pass and before constraint sub-pass. From-SVN: r278865 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 98a93a5..630d388 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-11-29 Vladimir Makarov + + PR rtl-optimization/92283 + * lra.c (lra): Update reg notes after inheritance sub-pass and + before constraint sub-pass. + 2019-11-29 Richard Biener PR tree-optimization/91003 diff --git a/gcc/lra.c b/gcc/lra.c index ec20aed..42b5871 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. */