From: Jeff Law Date: Wed, 18 Mar 2020 22:07:28 +0000 (-0600) Subject: Complete change to resolve pr90275. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=529ea7d9596b26ba103578eeab448e9862a2d2c5;p=gcc.git Complete change to resolve pr90275. PR rtl-optimization/90275 * cse.c (cse_insn): Delete no-op register moves too. --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8694f272a9c..3a2e491113e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-03-12 Richard Sandiford + + PR rtl-optimization/90275 + * cse.c (cse_insn): Delete no-op register moves too. + 2020-03-18 Martin Sebor PR ipa/92799 diff --git a/gcc/cse.c b/gcc/cse.c index 08984c17040..3e8724b3fed 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -5329,7 +5329,6 @@ cse_insn (rtx_insn *insn) else if (n_sets == 1 && !CALL_P (insn) && (MEM_P (trial) || REG_P (trial)) - && MEM_P (dest) && rtx_equal_p (trial, dest) && !side_effects_p (dest) && (cfun->can_delete_dead_exceptions