Commit dbf4f1a2 by Roger Sayle Committed by Roger Sayle

* combine.c (simplify_set): Treat MODE_CC registers like cc0.

From-SVN: r58148
parent 8c536ae9
2002-10-14 Roger Sayle <roger@eyesopen.com> 2002-10-14 Roger Sayle <roger@eyesopen.com>
* combine.c (simplify_set): Treat MODE_CC registers like cc0.
2002-10-14 Roger Sayle <roger@eyesopen.com>
Zack Weinberg <zack@codesourcery.com> Zack Weinberg <zack@codesourcery.com>
* config/i386/i386.c (k6_cost): Correct typo. * config/i386/i386.c (k6_cost): Correct typo.
......
...@@ -5021,11 +5021,9 @@ simplify_set (x) ...@@ -5021,11 +5021,9 @@ simplify_set (x)
/* If we are setting CC0 or if the source is a COMPARE, look for the use of /* If we are setting CC0 or if the source is a COMPARE, look for the use of
the comparison result and try to simplify it unless we already have used the comparison result and try to simplify it unless we already have used
undobuf.other_insn. */ undobuf.other_insn. */
if ((GET_CODE (src) == COMPARE if ((GET_MODE_CLASS (mode) == MODE_CC
#ifdef HAVE_cc0 || GET_CODE (src) == COMPARE
|| dest == cc0_rtx || CC0_P (dest))
#endif
)
&& (cc_use = find_single_use (dest, subst_insn, &other_insn)) != 0 && (cc_use = find_single_use (dest, subst_insn, &other_insn)) != 0
&& (undobuf.other_insn == 0 || other_insn == undobuf.other_insn) && (undobuf.other_insn == 0 || other_insn == undobuf.other_insn)
&& GET_RTX_CLASS (GET_CODE (*cc_use)) == '<' && GET_RTX_CLASS (GET_CODE (*cc_use)) == '<'
......
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