Skip to content
  • Chris Lattner's avatar
    Have loop-rotate simplify instructions (yay instsimplify!) as it clones · 8c5defd0
    Chris Lattner authored
    them into the loop preheader, eliminating silly instructions like
    "icmp i32 0, 100" in fixed tripcount loops.  This also better exposes the 
    bigger problem with loop rotate that I'd like to fix: once this has been
    folded, the duplicated conditional branch *often* turns into an uncond branch.
    
    Not aggressively handling this is pessimizing later loop optimizations 
    somethin' fierce by making "dominates all exit blocks" checks fail.
    
    llvm-svn: 123060
    8c5defd0
Loading