Skip to content

Commit

Permalink
Register sizes are in bits. Divide by 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
Blei committed Jul 5, 2012
1 parent 90ef1f6 commit 5c9dd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Target/X86/X86InstrInfo.cpp
Expand Up @@ -2595,7 +2595,7 @@ void X86InstrInfo::insertSelect(MachineBasicBlock &MBB,
MachineRegisterInfo &MRI = MBB.getParent()->getRegInfo();
assert(Cond.size() == 1 && "Invalid Cond array");
unsigned Opc = getCMovFromCond((X86::CondCode)Cond[0].getImm(),
MRI.getRegClass(DstReg)->getSize());
MRI.getRegClass(DstReg)->getSize()/8);
BuildMI(MBB, I, DL, get(Opc), DstReg).addReg(FalseReg).addReg(TrueReg);
}

Expand Down

0 comments on commit 5c9dd91

Please sign in to comment.