Skip to content

Commit ecb5064

Browse files
committed
Revert the renames. Let's just keep it as-is
1 parent 8f73f51 commit ecb5064

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/VirtRegMap.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,9 @@ void VirtRegRewriter::rewrite() {
598598
SmallVector<Register, 8> SuperDefs;
599599
SmallVector<Register, 8> SuperKills;
600600

601-
const bool IsFailedAlloc = MF->getProperties().hasProperty(
601+
const bool IsValidAlloc = !MF->getProperties().hasProperty(
602602
MachineFunctionProperties::Property::FailedRegAlloc);
603+
603604
for (MachineFunction::iterator MBBI = MF->begin(), MBBE = MF->end();
604605
MBBI != MBBE; ++MBBI) {
605606
LLVM_DEBUG(MBBI->print(dbgs(), Indexes));
@@ -619,7 +620,7 @@ void VirtRegRewriter::rewrite() {
619620
assert(Register(PhysReg).isPhysical());
620621

621622
RewriteRegs.insert(PhysReg);
622-
assert((!MRI->isReserved(PhysReg) || IsFailedAlloc) &&
623+
assert((!MRI->isReserved(PhysReg) || !IsValidAlloc) &&
623624
"Reserved register assignment");
624625

625626
// Preserve semantics of sub-register operands.

0 commit comments

Comments
 (0)