From dc5e7065a4132246e97dda1db39c4c2ae61e0cc3 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 28 Oct 2010 20:44:22 +0000 Subject: [PATCH] One day, physical register live ranges will be sensible. llvm-svn: 117602 --- llvm/lib/CodeGen/MachineVerifier.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 9b3fdcfc1ea3..352c01d91d42 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -908,6 +908,11 @@ void MachineVerifier::verifyLiveIntervals() { if (MRI->use_empty(LI.reg)) continue; + // Physical registers have much weirdness going on, mostly from coalescing. + // We should probably fix it, but for now just ignore them. + if (TargetRegisterInfo::isPhysicalRegister(LI.reg)) + continue; + assert(LVI->first == LI.reg && "Invalid reg to interval mapping"); for (LiveInterval::const_vni_iterator I = LI.vni_begin(), E = LI.vni_end();