From 19e1183f174dbd85deff959e93519c8239d38069 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 24 Feb 2017 08:36:10 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/ira.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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); -- 2.30.2