Hi, Attached are two patches for the StrucuturizeCFG pass. The first changes the ordering of the blocks to reverse post-order, which fixes invalid code being generated for certain kinds of loops. The second patch removes an early fix to backedge detection which is no longer needed after the first patch. -Tom