This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/29583] reorg.c checks insns for delay slots in the wrong order sometimes



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]