From: Jakob Stoklund Olesen Date: Thu, 17 May 2012 18:32:40 +0000 (+0000) Subject: Fix a verifier bug. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e3da8c62864da0ed0386075baf79d612746d849b;p=oota-llvm.git Fix a verifier bug. Make sure useless (def-only) intervals also get verified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157000 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index 231c91b00b2..a2027509783 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -1076,7 +1076,7 @@ void MachineVerifier::verifyLiveIntervals() { const LiveInterval &LI = *LVI->second; // Spilling and splitting may leave unused registers around. Skip them. - if (MRI->use_empty(LI.reg)) + if (MRI->reg_nodbg_empty(LI.reg)) continue; // Physical registers have much weirdness going on, mostly from coalescing.