Fold immediates into X86 shifts with fast isel. This generates:
authorChris Lattner <sabre@nondot.org>
Sun, 21 Sep 2008 21:44:29 +0000 (21:44 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Sep 2008 21:44:29 +0000 (21:44 +0000)
commit743922ea75ba650b9e87a3627f0de8d1e0869d00
tree63990a1350151ae27fda0e6247e82556cf08feab
parent3bdf5fe71ad2d48d81d013b16181766bde295f58
Fold immediates into X86 shifts with fast isel.  This generates:

sarl    $3, %ecx

instead of:

movl    $3, %ecx
sarl    %cl, %edx

This shrinks fast isel 176.gcc by about 2000 instructions (.3%)

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