[X86] Reduce scope of DestReg and use specific Register type not unsigned. NFCI.

This commit is contained in:
Simon Pilgrim 2020-10-31 11:46:07 +00:00
parent ae80ac6db2
commit 30a1d91127
1 changed files with 1 additions and 2 deletions

View File

@ -2708,10 +2708,9 @@ bool X86FastISel::fastLowerIntrinsicCall(const IntrinsicInst *II) {
// movq (%rax), %rax
// movq (%rax), %rax
// ...
unsigned DestReg;
unsigned Depth = cast<ConstantInt>(II->getOperand(0))->getZExtValue();
while (Depth--) {
DestReg = createResultReg(RC);
Register DestReg = createResultReg(RC);
addDirectMem(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DbgLoc,
TII.get(Opc), DestReg), SrcReg);
SrcReg = DestReg;