diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-17 18:32:40 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2012-05-17 18:32:40 +0000 |
commit | e3da8c62864da0ed0386075baf79d612746d849b (patch) | |
tree | b985279e4e543a4a64c18f8902b200c8573d090c /lib/CodeGen/MachineVerifier.cpp | |
parent | 29424e8133bacadecff1eaf3f9c6a78c778b12b0 (diff) | |
download | external_llvm-e3da8c62864da0ed0386075baf79d612746d849b.zip external_llvm-e3da8c62864da0ed0386075baf79d612746d849b.tar.gz external_llvm-e3da8c62864da0ed0386075baf79d612746d849b.tar.bz2 |
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
Diffstat (limited to 'lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index 231c91b..a202750 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. |