gcse.c (cprop_jump): Use single_set to get the pattern from the setcc argument.
* gcse.c (cprop_jump): Use single_set to get the pattern from the setcc argument. From-SVN: r54221
This commit is contained in:
parent
4fcc2065d9
commit
b2f02503e9
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-06-03 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* gcse.c (cprop_jump): Use single_set to get the pattern
|
||||
from the setcc argument.
|
||||
|
||||
2002-06-03 Gabriel Dos Reis <gdr@codesourcery.com>
|
||||
|
||||
* diagnostic.h (diagnostic_count): Move from output_buffer to
|
||||
|
|
|
@ -4097,9 +4097,12 @@ cprop_jump (bb, setcc, jump, from, src)
|
|||
/* First substitute in the INSN condition as the SET_SRC of the JUMP,
|
||||
then substitute that given values in this expanded JUMP. */
|
||||
if (setcc != NULL)
|
||||
new_set = simplify_replace_rtx (SET_SRC (set),
|
||||
SET_DEST (PATTERN (setcc)),
|
||||
SET_SRC (PATTERN (setcc)));
|
||||
{
|
||||
rtx setcc_set = single_set (setcc);
|
||||
new_set = simplify_replace_rtx (SET_SRC (set),
|
||||
SET_DEST (setcc_set),
|
||||
SET_SRC (setcc_set));
|
||||
}
|
||||
else
|
||||
new_set = set;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue