Skip to content
  • Chris Lattner's avatar
    Fix a regression from last night, which caused this pass to create invalid · 8048b85e
    Chris Lattner authored
    code for IV uses outside of loops that are not dominated by the latch block.
    We should only convert these uses to use the post-inc value if they ARE
    dominated by the latch block.
    
    Also use a new LoopInfo method to simplify some code.
    
    This fixes Transforms/LoopStrengthReduce/2005-09-12-UsesOutOutsideOfLoop.ll
    
    llvm-svn: 23318
    8048b85e
Loading