Promote shifts by a constant to multiplies so that we can reassociate
authorChris Lattner <sabre@nondot.org>
Tue, 14 Mar 2006 06:55:18 +0000 (06:55 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 14 Mar 2006 06:55:18 +0000 (06:55 +0000)
commit22a66c41f3ab42c15437033851395b0b8288681b
tree5dbdb71ae80b1f4b1d9f7338fb46692b358a40d8
parent000c7c4c7b9481fb596fb2a2db9d163b800a8a09
Promote shifts by a constant to multiplies so that we can reassociate
(x<<1)+(y<<1) -> (X+Y)<<1.  This implements
Transforms/Reassociate/shift-factor.ll

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