[Patch] Fix PR41440 bad edge insertion
Michael Matz
matz@suse.de
Thu Oct 1 13:44:00 GMT 2009
Hi,
On Thu, 1 Oct 2009, andrewhutchinson@cox.net wrote:
> After discussion with Micael Matz, the preferred method is fix the
> problem at the point of RTL expansion. A block that ends with a jump
> created by RTL expander on an otherwise fallthru edge, is now padded
> with mov(r,r) NOP.
I can't approve this but (obviously) think this is the right way. In
addition you might want to pad only when something is queued on that edge
(edge->r.insns != NULL) to not generate excessive nop moves. Probably
doesn't matter that much, though.
Ciao,
Michael.
More information about the Gcc-patches
mailing list