Skip to content

Commit

Permalink
refs #29: propagate moves does no longer combine the moved out insn w…
Browse files Browse the repository at this point in the history
…ith the previous one
  • Loading branch information
bebbo committed Mar 26, 2018
1 parent fc35252 commit 5d3446a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gcc/bbb-opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2801,17 +2801,17 @@ opt_propagate_moves ()
rtx_insn * newii = make_insn_raw (PATTERN (ii));
SET_INSN_DELETED(ii);

/* Plus check if the reg was just loaded. */
if (bset)
{
rtx bdst = SET_DEST(bset);
if (REG_P(bdst) && REGNO(bdst) == REGNO(srci))
{
SET_SRC(PATTERN(newii)) = SET_SRC(bset);
// SET_INSN_DELETED(ii);
}
}
else
// /* Plus check if the reg was just loaded. */
// if (bset)
// {
// rtx bdst = SET_DEST(bset);
// if (REG_P(bdst) && REGNO(bdst) == REGNO(srci))
// {
// SET_SRC(PATTERN(newii)) = SET_SRC(bset);
//// SET_INSN_DELETED(ii);
// }
// }
// else
add_reg_note (newii, REG_DEAD, srci);

add_insn_after (newii, before, 0);
Expand Down

0 comments on commit 5d3446a

Please sign in to comment.