re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on i686-linux)
authorJeff Law <law@redhat.com>
Fri, 24 Feb 2017 15:36:10 +0000 (08:36 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 24 Feb 2017 15:36:10 +0000 (08:36 -0700)
PR rtl-optimizatoin/79286
* ira.c (update_equiv_regs): Drop may_trap_p exception to
dominance test.

From-SVN: r245714

gcc/ChangeLog
gcc/ira.c

index 22964c87c3890e53a6c57415f55e5b72ac243d27..1239c4a0a58a69b9b6edae69d1a9bb9bc7a575d0 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-24  Jeff Law  <law@redhat.com>
+
+       PR rtl-optimizatoin/79286
+       * ira.c (update_equiv_regs): Drop may_trap_p exception to
+       dominance test.
+
 2017-02-24  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/79389
index 6fb8aaffdcce3917749b052c4ed6ea638dcb8112..b41c480c99d5f9d9aca29acf863333e147b100f0 100644 (file)
--- 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);