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)
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.


No differences found