[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)
commit88dc6cd5c9255732aa3cc18b31787ae7a336745e
tree8cb8acf98ea5d8668d167886bd7895502fe76f9f
parent49fe2a5a5c60ba8111682ddbf8a12522538f34cd
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225252 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
lib/Target/X86/X86InstrArithmetic.td
lib/Target/X86/X86InstrCompiler.td
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86MCInstLower.cpp