diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-09-02 10:36:27 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-09-02 10:36:27 +0000 |
commit | eaf23fc3d56f6aa63e24fe2951fc5ec76b39cbc6 (patch) | |
tree | 37f7caab339392c9226dbb570e377ccf9b688013 /gcc/config/mips | |
parent | 51ad44fd6ba163c3945e4d20b2d8d63524d6a1ac (diff) | |
download | gcc-eaf23fc3d56f6aa63e24fe2951fc5ec76b39cbc6.zip gcc-eaf23fc3d56f6aa63e24fe2951fc5ec76b39cbc6.tar.gz gcc-eaf23fc3d56f6aa63e24fe2951fc5ec76b39cbc6.tar.bz2 |
re PR rtl-optimization/54369 (delayed-branch pass removes too many instructions)
PR rtl-optimization/54369
* config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
calling dbr_schedule.
* config/sparc/sparc.c (sparc_reorg): Likewise.
From-SVN: r190858
Diffstat (limited to 'gcc/config/mips')
-rw-r--r-- | gcc/config/mips/mips.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 7721a7c..06b2ff4 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -15729,7 +15729,10 @@ mips_reorg (void) } if (optimize > 0 && flag_delayed_branch) - dbr_schedule (get_insns ()); + { + cleanup_barriers (); + dbr_schedule (get_insns ()); + } mips_reorg_process_insns (); if (!TARGET_MIPS16 && TARGET_EXPLICIT_RELOCS |