diff --git a/llvm/lib/CodeGen/LiveRangeCalc.cpp b/llvm/lib/CodeGen/LiveRangeCalc.cpp --- a/llvm/lib/CodeGen/LiveRangeCalc.cpp +++ b/llvm/lib/CodeGen/LiveRangeCalc.cpp @@ -216,15 +216,6 @@ errs() << Use << " " << *MI; report_fatal_error("Use not jointly dominated by defs."); } - - if (Register::isPhysicalRegister(PhysReg) && !MBB->isLiveIn(PhysReg)) { - MBB->getParent()->verify(); - const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo(); - errs() << "The register " << printReg(PhysReg, TRI) - << " needs to be live in to " << printMBBReference(*MBB) - << ", but is missing from the live-in list.\n"; - report_fatal_error("Invalid global physical register"); - } #endif FoundUndef |= MBB->pred_empty();