[PATH]: PR middlend/38385 fix

Sebastian Pop spop@gcc.gnu.org
Thu Dec 4 16:33:00 GMT 2008


>> I don't follow.  You create an edge from the preheader to the loop exit
>> and now use the values from the exit edge for that edge?  If we
>> are in loop-closed SSA form we should not need to care at all here.
>> It is more likely that we need to split some block before removing the
>> loop.
>
> Err, wait.  These _are_ the loop-closed PHI nodes.  You should be able
> to just remove them by propagation.

Another way to remove the loop is the way graphite is removing the old
code: move the loop in an if (0) and let cleanup cfg to remove this
dead code.  I think it is more systematic and less error prone than the
current implementation in the loop-distribution pass.

Sebastian



More information about the Gcc-patches mailing list