Skip to content
  • Chris Lattner's avatar
    fix two significant issues with FoldTwoEntryPHINode: · 335f0e4a
    Chris Lattner authored
    first, it can kick in on blocks whose conditions have been
    folded to a constant, even though one of the edges will be
    trivially folded.
    
    second, it doesn't clean up the "if diamond" that it just 
    eliminated away.  This is a problem because other simplifycfg
    xforms kick in depending on the order of block visitation,
    causing pointless work.
    
    llvm-svn: 121762
    335f0e4a
Loading