diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-02-12 10:16:34 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2014-02-12 10:16:34 +0000 |
commit | 491bdba30e0e46ba509726736cad8d562946f99f (patch) | |
tree | bea844e619a5f9e53c18e2dfd5f1bc6086859189 /gcc/combine.c | |
parent | 283416b3fbccccc90cac74c351517c29204a3775 (diff) | |
download | gcc-491bdba30e0e46ba509726736cad8d562946f99f.zip gcc-491bdba30e0e46ba509726736cad8d562946f99f.tar.gz gcc-491bdba30e0e46ba509726736cad8d562946f99f.tar.bz2 |
re PR rtl-optimization/60116 (wrong code at -Os on x86_64-linux-gnu in 32-bit mode)
PR rtl-optimization/60116
* combine.c (try_combine): Fix oversight in previous change.
From-SVN: r207716
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index f6e1dbc..1b598b4 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -3902,8 +3902,11 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx i0, int *new_direct_jump_p, next = XEXP (note, 1); if ((REG_NOTE_KIND (note) == REG_DEAD - || REG_NOTE_KIND (note) == REG_UNUSED) - && ! reg_set_p (XEXP (note, 0), PATTERN (undobuf.other_insn))) + && !reg_referenced_p (XEXP (note, 0), + PATTERN (undobuf.other_insn))) + ||(REG_NOTE_KIND (note) == REG_UNUSED + && !reg_set_p (XEXP (note, 0), + PATTERN (undobuf.other_insn)))) remove_note (undobuf.other_insn, note); } |