Prevent SSA construction from running into endless loops.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 15 Apr 2011 14:12:37 +0000 (16:12 +0200)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 15 Apr 2011 14:38:47 +0000 (16:38 +0200)
commit2a018b8111bd0596816c1d00c38a0024857753f7
treee52a676ba81f9766dcabecb397333b96796b15ee
parent4930ee18afa35464a835a781671615571efa8a90
Prevent SSA construction from running into endless loops.

If there is an unreachable loop (i.e. there is no loop entry edge)
then there may is a cycle of blocks with only one predecessor.
Since the algorithm handle this case by returning the value of the predecessor,
this causes an endless recursion.
The fix uses the visited flag to detect such cycles.
ir/ir/ircons.c