Permalink
Browse files

Always break upon finding a vreg operand (in Release as well as +Asse…

…rts). Remove assertion which can no longer trigger.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148984 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
1 parent 74423e3 commit 6c76e80753cfc83dc6804fcd5d949c517dfe3434 @lhames lhames committed Jan 25, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -819,13 +819,8 @@ unsigned LiveIntervals::getReMatImplicitUse(const LiveInterval &li,
if (TargetRegisterInfo::isPhysicalRegister(Reg) &&
!allocatableRegs_[Reg])
continue;
- // FIXME: For now, only remat MI with at most one register operand.
- assert(!RegOp &&
- "Can't rematerialize instruction with multiple register operand!");
RegOp = MO.getReg();
-#ifdef NDEBUG
- break;
-#endif
+ break; // Found vreg operand - leave the loop.
}
return RegOp;
}

0 comments on commit 6c76e80

Please sign in to comment.