llvm.org GIT mirror llvm / 6c76e80
Always break upon finding a vreg operand (in Release as well as +Asserts). Remove assertion which can no longer trigger. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148984 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 7 years ago
1 changed file(s) with 1 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
818818 if (TargetRegisterInfo::isPhysicalRegister(Reg) &&
819819 !allocatableRegs_[Reg])
820820 continue;
821 // FIXME: For now, only remat MI with at most one register operand.
822 assert(!RegOp &&
823 "Can't rematerialize instruction with multiple register operand!");
824821 RegOp = MO.getReg();
825 #ifdef NDEBUG
826 break;
827 #endif
822 break; // Found vreg operand - leave the loop.
828823 }
829824 return RegOp;
830825 }