Skip to content
  • Jeff Cohen's avatar
    Fixed the following LSR bugs: · 8ea6f9e8
    Jeff Cohen authored
      * Loop invariant code does not dominate the loop header, but rather
        the end of the loop preheader.
    
      * The base for a reduced GEP isn't a constant unless all of its
        operands (preceding the induction variable) are constant.
    
      * Allow induction variable elimination for the simple case after all.
    
    Also made changes recommended by Chris for properly deleting
    instructions.
    
    llvm-svn: 20383
    8ea6f9e8
Loading