Clarify and make explicit some of the requirements for transforming
authorChandler Carruth <chandlerc@gmail.com>
Wed, 11 Jan 2012 09:35:00 +0000 (09:35 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 11 Jan 2012 09:35:00 +0000 (09:35 +0000)
commitfde2c1a4c67c8a858b08785bc34aadf07f5c1a44
tree669ea5e8dc75f0e5d0f0a405daf1d6bb0871dac8
parentdec1f996152d4292133e81527ad710fbc1280946
Clarify and make explicit some of the requirements for transforming
mask+shift pairs at the beginning of the ISD::AND case block, and then
hoist the final pattern into a helper function, simplifying and
reflowing it appropriately. This should have no observable behavior
change, but several simplifications fell out of this such as directly
computing the new mask constant, etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147939 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp