This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/29583] reorg.c checks insns for delay slots in the wrong order sometimes
- From: "ersmith at hfx dot eastlink dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Oct 2006 16:30:10 -0000
- Subject: [Bug rtl-optimization/29583] reorg.c checks insns for delay slots in the wrong order sometimes
- References: <bug-29583-13458@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ersmith at hfx dot eastlink dot ca 2006-10-24 16:30 -------
Created an attachment (id=12484)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12484&action=view)
proposed patch to fix delay slot scheduling problems
Here is my proposed patch. It checks the existing insns to make sure they can
go in the next delay slots before inserting the new one; it also makes sure the
new insn is checked against the correct slot. On processors where there are
insns that can go in delay slot 1 but not slot 0 the patch is suboptimal, since
everything gets tried against slot 0 first; OTOH the existing code is wrong, so
suboptimal is an improvement :-).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29583