[llvm-commits] [llvm] r157000 - /llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Jakob Stoklund Olesen
stoklund at 2pi.dk
Thu May 17 11:32:40 PDT 2012
Author: stoklund
Date: Thu May 17 13:32:40 2012
New Revision: 157000
URL: http://llvm.org/viewvc/llvm-project?rev=157000&view=rev
Log:
Fix a verifier bug.
Make sure useless (def-only) intervals also get verified.
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=157000&r1=156999&r2=157000&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Thu May 17 13:32:40 2012
@@ -1076,7 +1076,7 @@
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.
More information about the llvm-commits
mailing list