OSDN Git Service

[X86] Use a MOVSX instruction instead of a MOVZX instruction in isel for an any_exten...
authorCraig Topper <craig.topper@intel.com>
Sat, 10 Nov 2018 06:04:33 +0000 (06:04 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 10 Nov 2018 06:04:33 +0000 (06:04 +0000)
commit01568d51f085ba06fad7f523d1faffb1c0971089
treea2f2916d0166b09b038cbcb11117f570c899e2b2
parent6c3e6aa54233fc28a5ae601cd5075d9665d20b9b
[X86] Use a MOVSX instruction instead of a MOVZX instruction in isel for an any_extend of the remainder from an 8-bit sdivrem.

The sdivrem will emit its own MOVSX to move %ah to the low byte of a register. By using a MOVSX for an any_extend this allows a post-isel peephole to merge them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346581 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrCompiler.td
test/CodeGen/X86/vector-idiv-sdiv-128.ll