X86: Generalize the x << (y & const) optimization to also catch masks with more set...
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jan 2012 12:41:34 +0000 (12:41 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 12 Jan 2012 12:41:34 +0000 (12:41 +0000)
commitfb418bab977ad1484f9513de82d710d88d239bc2
tree93a869f88c7f18a640991e9768396e73b4f79f2a
parente5dafc395656645c3a5d90e7c1b55477800f2ab1
X86: Generalize the x << (y & const) optimization to also catch masks with more set bits set than 31 or 63.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148024 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/shift-and.ll