On 05/03/2011 05:13 AM, Nick Clifton wrote: > The problem I found here was that I did not know how to find all of > the test-and-loop-back insns if the loop spanned multiple blocks. > The revised patch includes a comment saying that loops spanning > multiple blocks could be supported, but I would like to leave that > for a future patch rather than trying to get it all working now.
The patch is ok. As for the finding the branches, I'm pretty sure that /* Head of the cyclic list of the exits of the loop. */ struct loop_exit *exits; means what it says and contains all of the edges that exit the block. But doing that in a separate patch is fine. r~