Remember that the induction variable is always a PHINode and
authorDan Gohman <gohman@apple.com>
Tue, 20 Jul 2010 17:18:52 +0000 (17:18 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 20 Jul 2010 17:18:52 +0000 (17:18 +0000)
commit43ef3fbae12c7924a25df4563d86084973db9c67
treeb86a8599dc3149a5430d8a4f4320b5bac89ab9fd
parente8950977a5cf929ab15b6c5f7265a029500d9a7d
Remember that the induction variable is always a PHINode and
use getIncomingValueForBlock instead of
LoopInfo::getCanonicalInductionVariableIncrement.

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