aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-03-18 16:07:28 -0600
committerJeff Law <law@redhat.com>2020-03-18 16:07:28 -0600
commit529ea7d9596b26ba103578eeab448e9862a2d2c5 (patch)
tree95a07a8885d46fb55a13e02b3926850b2cbaa386 /gcc/cse.c
parent3512dc0108afbed3bece2e9fa1719fb3ce1d73d9 (diff)
downloadgcc-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/cse.c')
-rw-r--r--gcc/cse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 08984c1..3e8724b 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