[X86] Make isel select the 2-byte register form of INC/DEC even in non-64-bit mode...
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Jan 2015 07:35:50 +0000 (07:35 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Jan 2015 07:35:50 +0000 (07:35 +0000)
commitddbf51f904aaea33a82e94f265c2c1da52aa45b6
treeb2ae073af68d71c5f5dec25e9c1db53aa70b6867
parentbde27836cebc7a93104df12dab89c89dc5c97efa
[X86] Make isel select the 2-byte register form of INC/DEC even in non-64-bit mode. Convert to the 1-byte form in non-64-bit mode as part of MCInst lowering.

Overall this seems simpler. It reduces duplication of patterns between both modes and it simplifies the memory folding/unfolding tables as they don't need to create fake instructions just to keep track of 64-bitness.

llvm-svn: 225252
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Target/X86/X86InstrArithmetic.td
llvm/lib/Target/X86/X86InstrCompiler.td
llvm/lib/Target/X86/X86InstrInfo.cpp
llvm/lib/Target/X86/X86MCInstLower.cpp