[X86] Don't use GR64 register 'and with immediate' instructions if the immediate...
authorCraig Topper <craig.topper@gmail.com>
Sat, 4 Apr 2015 02:08:20 +0000 (02:08 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 4 Apr 2015 02:08:20 +0000 (02:08 +0000)
commit90120287386de2c102e1ab9632154618a2d2b2eb
treeed4e9239741f6371254c6e5a63c229f200bf839f
parentdb9e9d83b61f7f084f235eb87314f673c19c0350
[X86] Don't use GR64 register 'and with immediate' instructions if the immediate is zero in the upper 33-bits or upper 57-bits. Use GR32 instructions instead.

Previously the patterns didn't have high enough priority and we would only use the GR32 form if the only the upper 32 or 56 bits were zero.

Fixes PR23100.

llvm-svn: 234075
llvm/lib/Target/X86/X86InstrCompiler.td
llvm/test/CodeGen/X86/2009-02-26-MachineLICMBug.ll
llvm/test/CodeGen/X86/and-or-fold.ll
llvm/test/CodeGen/X86/andimm8.ll
llvm/test/CodeGen/X86/atomic64.ll
llvm/test/CodeGen/X86/bmi.ll
llvm/test/CodeGen/X86/setcc.ll
llvm/test/CodeGen/X86/shift-pair.ll
llvm/test/CodeGen/X86/uint64-to-float.ll
llvm/test/CodeGen/X86/x86-64-tls-1.ll