Commit e26ef527 by Jeffrey A Law Committed by Jeff Law

cse.c (cse_insn): If an insn has only a single set...

        * cse.c (cse_insn): If an insn has only a single set, SRC_EQV
        is nonzero and the single set does not have an elt, then assign
        it an elt.

From-SVN: r30304
parent 99f44eba
...@@ -34,6 +34,10 @@ Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com> ...@@ -34,6 +34,10 @@ Sun Oct 31 13:32:15 CET 1999 Marc Lehmann <pcg@goof.com>
Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com) Sun Oct 31 01:53:30 1999 Jeffrey A Law (law@cygnus.com)
* cse.c (cse_insn): If an insn has only a single set, SRC_EQV
is nonzero and the single set does not have an elt, then assign
it an elt.
* simplify-rtx.c: New file. * simplify-rtx.c: New file.
* Makefile.in (OBJS): Add simplify-rtx.o * Makefile.in (OBJS): Add simplify-rtx.o
(simplify-rtx.o): Add dependencies. (simplify-rtx.o): Add dependencies.
......
...@@ -5733,8 +5733,9 @@ cse_insn (insn, libcall_insn) ...@@ -5733,8 +5733,9 @@ cse_insn (insn, libcall_insn)
does not yet have an elt, and if so set the elt of the set source does not yet have an elt, and if so set the elt of the set source
to src_eqv_elt. */ to src_eqv_elt. */
for (i = 0; i < n_sets; i++) for (i = 0; i < n_sets; i++)
if (sets[i].rtl && sets[i].src_elt == 0 if (n_sets == 1
&& rtx_equal_p (SET_SRC (sets[i].rtl), src_eqv)) || (sets[i].rtl && sets[i].src_elt == 0
&& rtx_equal_p (SET_SRC (sets[i].rtl), src_eqv)))
sets[i].src_elt = src_eqv_elt; sets[i].src_elt = src_eqv_elt;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment