[SCEV] Fix getLoopBackedgeTakenCounts
authorSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 23 Dec 2015 17:48:14 +0000 (17:48 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Wed, 23 Dec 2015 17:48:14 +0000 (17:48 +0000)
commit32b3dea69874e146fcfd5fd16c2dd54284f52541
tree94a73f33fd14bc7b32ffe8fe5641dd860b42cd0d
parent9f5e13c6b0101e83cd0e328b9243e13d928a283a
[SCEV] Fix getLoopBackedgeTakenCounts

The way `getLoopBackedgeTakenCounts` is written right now isn't
correct. It will try to compute and store the BE counts of a Loop
 #{child loop} number of times (which may be zero).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256338 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp