From 14a87459906408ef325940b07bcf5fea3183f5fe Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 17 May 2012 18:32:40 +0000 Subject: [PATCH] Fix a verifier bug. Make sure useless (def-only) intervals also get verified. llvm-svn: 157000 --- llvm/lib/CodeGen/MachineVerifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 231c91b..a202750 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/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. -- 2.7.4