From: Jeff Law Date: Fri, 24 Feb 2017 15:36:10 +0000 (-0700) Subject: re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on i686-linux) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19e1183f174dbd85deff959e93519c8239d38069;p=gcc.git re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on i686-linux) PR rtl-optimizatoin/79286 * ira.c (update_equiv_regs): Drop may_trap_p exception to dominance test. From-SVN: r245714 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22964c87c38..1239c4a0a58 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-02-24 Jeff Law + + PR rtl-optimizatoin/79286 + * ira.c (update_equiv_regs): Drop may_trap_p exception to + dominance test. + 2017-02-24 Richard Biener PR tree-optimization/79389 diff --git a/gcc/ira.c b/gcc/ira.c index 6fb8aaffdcc..b41c480c99d 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -3551,8 +3551,7 @@ update_equiv_regs (void) if (DF_REG_DEF_COUNT (regno) == 1 && note && !rtx_varies_p (XEXP (note, 0), 0) - && (!may_trap_p (XEXP (note, 0)) - || def_dominates_uses (regno))) + && def_dominates_uses (regno)) { rtx note_value = XEXP (note, 0); remove_note (insn, note);