[patch] New loop flattening pass on tree-ssa

Sebastian Pop sebpop@gmail.com
Wed Oct 27 20:12:00 GMT 2010


On Wed, Oct 27, 2010 at 13:23, Richard Guenther
<richard.guenther@gmail.com> wrote:
> On Tue, Oct 26, 2010 at 4:49 PM, Sebastian Pop <sebpop@gmail.com> wrote:
>> On Tue, Oct 26, 2010 at 14:44, Richard Guenther
>> <richard.guenther@gmail.com> wrote:
>>> What's the motivation for adding a 2nd unconditional if-conversion pass?
>>
>> I guess we could make the second if-conversion a sub-pass of
>> loop-flat, such that it applies only if we flattened some loop.
>
> At least that.  Why does loop flattening not remove the forward edges itself?

Because we already have the if-conversion pass that does that.

We could make loop flattening directly call the if-conversion
of the loop that was flattened.  Then loop flattening would look
like what you suggest.  Do you want me to implement this change?

Thanks,
Sebastian



More information about the Gcc-patches mailing list