Skip to content
  • Andrew Trick's avatar
    Added a SimplifyIndVar utility to simplify induction variable users · 3ec331ea
    Andrew Trick authored
    based on ScalarEvolution without changing the induction variable phis.
    
    This utility is the main tool of IndVarSimplifyPass, but the pass also
    restructures induction variables in strange ways that are sensitive to
    pass ordering. This provides a way for other loop passes to simplify
    new uses of induction variables created during transformation. The
    utility may be used by any pass that preserves ScalarEvolution. Soon
    LoopUnroll will use it.
    
    The net effect in this checkin is to cleanup the IndVarSimplify pass
    by factoring out the SimplifyIndVar algorithm into a standalone utility.
    
    llvm-svn: 137197
    3ec331ea
Loading