indvars -disable-iv-rewrite: avoid multiple IVs in weird cases.
authorAndrew Trick <atrick@apple.com>
Tue, 5 Jul 2011 18:19:39 +0000 (18:19 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 5 Jul 2011 18:19:39 +0000 (18:19 +0000)
commite0dc2faaa0105c9d1cc56f0b70e93d532a6f8c4c
tree4d84e4f8ece34786d561deb4a3aa49b67e4e9e54
parentbc20e4f2dc11e346505f11efea22d9a1d3919eca
indvars -disable-iv-rewrite: avoid multiple IVs in weird cases.

Putting back the helper that I removed on 7/1 to do this right.

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