diff options
author | Jeff Law <law@redhat.com> | 2020-03-18 16:07:28 -0600 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 2020-03-18 16:07:28 -0600 |
commit | 529ea7d9596b26ba103578eeab448e9862a2d2c5 (patch) | |
tree | 95a07a8885d46fb55a13e02b3926850b2cbaa386 /gcc | |
parent | 3512dc0108afbed3bece2e9fa1719fb3ce1d73d9 (diff) | |
download | gcc-529ea7d9596b26ba103578eeab448e9862a2d2c5.zip gcc-529ea7d9596b26ba103578eeab448e9862a2d2c5.tar.gz gcc-529ea7d9596b26ba103578eeab448e9862a2d2c5.tar.bz2 |
Complete change to resolve pr90275.
PR rtl-optimization/90275
* cse.c (cse_insn): Delete no-op register moves too.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cse.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8694f27..3a2e491 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-03-12 Richard Sandiford <richard.sandiford@arm.com> + + PR rtl-optimization/90275 + * cse.c (cse_insn): Delete no-op register moves too. + 2020-03-18 Martin Sebor <msebor@redhat.com> PR ipa/92799 @@ -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 |