[X86] Remove unnecessary call to isReg from emitter's DestMem handling for VEX prefix. The operand is always a register. NFC

llvm-svn: 262468
This commit is contained in:
Craig Topper 2016-03-02 07:32:45 +00:00
parent 6a7cd42213
commit 1d3f4aefd6
1 changed files with 5 additions and 7 deletions

View File

@ -739,13 +739,11 @@ void X86MCCodeEmitter::EmitVEXOpcodePrefix(uint64_t TSFlags, unsigned &CurByte,
CurOp++;
}
const MCOperand &MO = MI.getOperand(CurOp);
if (MO.isReg()) {
if (X86II::isX86_64ExtendedReg(MO.getReg()))
VEX_R = 0x0;
if (X86II::is32ExtendedReg(MO.getReg()))
EVEX_R2 = 0x0;
}
if (X86II::isX86_64ExtendedReg(MI.getOperand(CurOp).getReg()))
VEX_R = 0x0;
if (X86II::is32ExtendedReg(MI.getOperand(CurOp).getReg()))
EVEX_R2 = 0x0;
CurOp++;
break;
}
case X86II::MRMSrcMem: