Skip to content
  • Chandler Carruth's avatar
    Add a somewhat hacky heuristic to do something different from whole-loop · 8c0b41d6
    Chandler Carruth authored
    rotation. When there is a loop backedge which is an unconditional
    branch, we will end up with a branch somewhere no matter what. Try
    placing this backedge in a fallthrough position above the loop header as
    that will definitely remove at least one branch from the loop iteration,
    where whole loop rotation may not.
    
    I haven't seen any benchmarks where this is important but loop-blocks.ll
    tests for it, and so this will be covered when I flip the default.
    
    llvm-svn: 154812
    8c0b41d6
Loading