OSDN Git Service

[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)
commitb1ff87ec86284a1765ba70b8939f65155b1555af
tree863fc8dbdb80314c1cd8989905feda7c83584518
parent45221a75fb6a11174e683bb346c5559066e91c84
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/2009-02-26-MachineLICMBug.ll
test/CodeGen/X86/and-or-fold.ll
test/CodeGen/X86/andimm8.ll
test/CodeGen/X86/atomic64.ll
test/CodeGen/X86/bmi.ll
test/CodeGen/X86/setcc.ll
test/CodeGen/X86/shift-pair.ll
test/CodeGen/X86/uint64-to-float.ll
test/CodeGen/X86/x86-64-tls-1.ll