One day, physical register live ranges will be sensible.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 28 Oct 2010 20:44:22 +0000 (20:44 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 28 Oct 2010 20:44:22 +0000 (20:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117602 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineVerifier.cpp

index 9b3fdcfc1ea32fc4c33c7257954ffeb08185d5b0..352c01d91d42ded3e0f90b15a3951131cb5fbe2e 100644 (file)
@@ -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();