Skip to content
  • Chandler Carruth's avatar
    The logic for breaking the CFG in the presence of hot successors didn't · 18dfac38
    Chandler Carruth authored
    properly account for the *global* probability of the edge being taken.
    This manifested as a very large number of unconditional branches to
    blocks being merged against the CFG even though they weren't
    particularly hot within the CFG.
    
    The fix is to check whether the edge being merged is both locally hot
    relative to other successors for the source block, and globally hot
    compared to other (unmerged) predecessors of the destination block.
    
    This introduces a new crasher on GCC single-source, but it's currently
    behind a flag, and Ben has offered to work on the reduction. =]
    
    llvm-svn: 145010
    18dfac38
Loading