teach reassociate to factor x+x+x -> x*3. While I'm at it,
authorChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 19:24:52 +0000 (19:24 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 31 Dec 2009 19:24:52 +0000 (19:24 +0000)
commit69e98e2c0f7a1a1a8e3547b57e3e78e1142b8a64
treee4d619847c1985d3a6eb66de29e6d28975cd97f4
parent9f7b7089be854c323f8d9a4627d80e47adf496e6
teach reassociate to factor x+x+x -> x*3.  While I'm at it,
fix RemoveDeadBinaryOp to actually do something.

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