Skip to content
  • Bob Wilson's avatar
    Fix pr4195: When iterating through predecessor blocks, break out of the loop · 9e3d48f1
    Bob Wilson authored
    after finding the (unique) layout predecessor.  Sometimes a block may be listed
    more than once, and processing it more than once in this loop can lead to
    inconsistent values for FtTBB/FtFBB, since the AnalyzeBranch method does not
    clear these values.  There's no point in continuing the loop regardless.
    The testcase for this is reduced from the 2003-05-02-DependentPHI SingleSource
    test.
    
    llvm-svn: 71536
    9e3d48f1
Loading