Skip to content

Commit 0bd66c4

Browse files
committed
[RegAllocGreedy] Remove unnecessary conversion from MCRegister to Register. NFC
1 parent 6fe780c commit 0bd66c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ MCRegister RAGreedy::selectOrSplitImpl(const LiveInterval &VirtReg,
24562456
// queue. The RS_Split ranges already failed to do this, and they should not
24572457
// get a second chance until they have been split.
24582458
if (Stage != RS_Split)
2459-
if (Register PhysReg =
2459+
if (MCRegister PhysReg =
24602460
tryEvict(VirtReg, Order, NewVRegs, CostPerUseLimit,
24612461
FixedRegisters)) {
24622462
Register Hint = MRI->getSimpleHint(VirtReg.reg());

0 commit comments

Comments
 (0)