Turn this pass ordering:
authorCameron Zwarich <zwarich@apple.com>
Thu, 10 Feb 2011 01:07:54 +0000 (01:07 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 10 Feb 2011 01:07:54 +0000 (01:07 +0000)
commitde0c42a73ac0787921d0020238af309f4b91451f
tree4a933c5fea707f08319a032de640075137b67d7e
parentb9db0c50d84b06b4b567c29375b7db92b5dab077
Turn this pass ordering:

Natural Loop Information
 Loop Pass Manager
   Canonicalize natural loops
 Scalar Evolution Analysis
 Loop Pass Manager
   Induction Variable Users
   Canonicalize natural loops
   Induction Variable Users
   Loop Strength Reduction

into this:

Scalar Evolution Analysis
Loop Pass Manager
  Canonicalize natural loops
  Induction Variable Users
  Loop Strength Reduction

This fixes <rdar://problem/8869639>. I also filed PR9184 on doing this sort of
thing automatically, but it seems easier to just change the ordering of the
passes if this is the only case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125254 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp