indvars: Added canExpandBackEdgeTakenCount.
authorAndrew Trick <atrick@apple.com>
Tue, 3 May 2011 22:24:10 +0000 (22:24 +0000)
committerAndrew Trick <atrick@apple.com>
Tue, 3 May 2011 22:24:10 +0000 (22:24 +0000)
commit4dfdf242c1917e98f407818eb5b68ae0b4678f26
tree86a4ce44042ce69b3eb25234b06f6770b226a60c
parentee4a3abede8fe895030bc75e560020ee6bac2deb
indvars: Added canExpandBackEdgeTakenCount.

Only create a canonical IV for backedge taken count if it will
actually be used by LinearFunctionTestReplace. And some related
cleanup, preparing to reduce dependence on canonical IVs.
No significant effect on x86 or arm in the test-suite.

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