move the rest of the add optimization code out to OptimizeAdd,
authorChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 18:17:13 +0000 (18:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 18:17:13 +0000 (18:17 +0000)
commit94285e620b845e09b18939e8d6448e01e692f3ce
treec8409d0505a721b4dd6c3cac2ec11b856ca02e7c
parent9fdaefad580194353f34b6d72669591f8f9d811a
move the rest of the add optimization code out to OptimizeAdd,
improve some comments, simplify a bit of code.

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