Skip to content

Commit 34474b1

Browse files
arsenmcdevadas
andcommitted
Update llvm/lib/CodeGen/RegAllocFast.cpp
Co-authored-by: Christudasan Devadasan <[email protected]>
1 parent 2f1df05 commit 34474b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/RegAllocFast.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,7 @@ void RegAllocFastImpl::allocVirtRegUndef(MachineOperand &MO) {
10071007
MO.setSubReg(0);
10081008
}
10091009
MO.setReg(PhysReg);
1010-
if (!LRI->Error)
1011-
MO.setIsRenamable(true);
1010+
MO.setIsRenamable(!LRI->Error);
10121011
}
10131012

10141013
/// Variation of defineVirtReg() with special handling for livethrough regs

0 commit comments

Comments
 (0)