Skip to content
  • Chandler Carruth's avatar
    Tweak the loop rotation logic to check whether the loop is naturally · 8c74c7b1
    Chandler Carruth authored
    laid out in a form with a fallthrough into the header and a fallthrough
    out of the bottom. In that case, leave the loop alone because any
    rotation will introduce unnecessary branches. If either side looks like
    it will require an explicit branch, then the rotation won't add any, do
    it to ensure the branch occurs outside of the loop (if possible) and
    maximize the benefit of the fallthrough in the bottom.
    
    llvm-svn: 154806
    8c74c7b1
Loading