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