mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 13:46:13 +00:00
For now, avoid issuing extract_subreg to reuse lower 8-bit, it's not safe in 32-bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d89d5180d1
commit
57d1d936fc
@ -724,6 +724,10 @@ X86InstrInfo::isCoalescableExtInstr(const MachineInstr &MI,
|
||||
case X86::MOVZX32rr8:
|
||||
case X86::MOVSX64rr8:
|
||||
case X86::MOVZX64rr8:
|
||||
if (!TM.getSubtarget<X86Subtarget>().is64Bit())
|
||||
// It's not always legal to reference the low 8-bit of the larger
|
||||
// register in 32-bit mode.
|
||||
return false;
|
||||
case X86::MOVSX32rr16:
|
||||
case X86::MOVZX32rr16:
|
||||
case X86::MOVSX64rr16:
|
||||
|
Loading…
Reference in New Issue
Block a user