1 + 100 + 51 == 152, not 52.
authorChris Lattner <sabre@nondot.org>
Sat, 26 Feb 2005 18:50:19 +0000 (18:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 26 Feb 2005 18:50:19 +0000 (18:50 +0000)
commit7ffc07dcf7a0afc5e70e799f26de75750a8008d5
treec6821944c54081dc682c0a2e04bfb695c3dcc9e8
parentfe75292503c2f3ef66d395fc3fbeb503eefed577
1 + 100 + 51 == 152, not 52.
If we fold three constants together (c1+c2+c3), make sure to keep
LHSC updated, instead of reusing (in this case), the 1 instead of the
partial sum.

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