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 | 14a87459906408ef325940b07bcf5fea3183f5fe (patch) | |
tree | 62e34e24af7ef8663ecf42c6423079cf8d304658 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 3d6439517c37d54d48dcf99e389020efa52dc899 (diff) | |
download | bcm5719-llvm-14a87459906408ef325940b07bcf5fea3183f5fe.tar.gz bcm5719-llvm-14a87459906408ef325940b07bcf5fea3183f5fe.zip |
Fix a verifier bug.
Make sure useless (def-only) intervals also get verified.
llvm-svn: 157000
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 231c91b00b2..a2027509783 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. |