diff options
author | Toma Tabacu <toma.tabacu@imgtec.com> | 2017-03-21 14:00:19 +0000 |
---|---|---|
committer | Toma Tabacu <tomtab@gcc.gnu.org> | 2017-03-21 14:00:19 +0000 |
commit | e4197fe6cf9e0165cd525516dfc51a84cfe56718 (patch) | |
tree | 0939957026e8cca930f946c8e8c0fb8127b47cc3 /gcc | |
parent | 0ffe60b5058fa621288e1dbe12fb588d2c040e5e (diff) | |
download | gcc-e4197fe6cf9e0165cd525516dfc51a84cfe56718.zip gcc-e4197fe6cf9e0165cd525516dfc51a84cfe56718.tar.gz gcc-e4197fe6cf9e0165cd525516dfc51a84cfe56718.tar.bz2 |
Apply temporary fix for PR rtl-optimization/79150.
gcc/
PR rtl-optimization/79150
* config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
conditional jump, if the jump is the last insn of the loop.
From-SVN: r246320
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 81a27f9..ff2cd7a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com> + + PR rtl-optimization/79150 + * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the + conditional jump, if the jump is the last insn of the loop. + 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com> Richard Biener <rguenth@suse.com> diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 7778207..d1deb52 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -8098,6 +8098,9 @@ mips_block_move_loop (rtx dest, rtx src, HOST_WIDE_INT length, /* Mop up any left-over bytes. */ if (leftover) mips_block_move_straight (dest, src, leftover); + else + /* Temporary fix for PR79150. */ + emit_insn (gen_nop ()); } /* Expand a movmemsi instruction, which copies LENGTH bytes from |