Little patch to turn (shl (add X, 123), 4) -> (add (shl X, 4), 123 << 4)
authorChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 03:46:20 +0000 (03:46 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 8 Oct 2004 03:46:20 +0000 (03:46 +0000)
commit1f7e160f77c9c0f042c3098b16ad659f3d7e74b4
tree7a6db0389664da668bbc47f42ef13c987fce6e6c
parentd74634a885efdc8e509737e553a906b04a991575
Little patch to turn (shl (add X, 123), 4) -> (add (shl X, 4), 123 << 4)

This triggers in cases of bitfield additions, opening opportunities for
future improvements.

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