Skip to content
  • Dan Gohman's avatar
    Re-apply r80926, with fixes: keep the domtree informed of new blocks · 3ddbc242
    Dan Gohman authored
    that get created during loop unswitching, and fix SplitBlockPredecessors'
    LCSSA updating code to create new PHIs instead of trying to just move
    existing ones.
    
    Also, optimize Loop::verifyLoop, since it gets called a lot. Use
    searches on a sorted list of blocks instead of calling the "contains"
    function, as is done in other places in the Loop class, since "contains"
    does a linear search. Also, don't call verifyLoop from LoopSimplify or
    LCSSA, as the PassManager is already calling verifyLoop as part of
    LoopInfo's verifyAnalysis.
    
    llvm-svn: 81221
    3ddbc242
Loading