summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-11-16 01:58:21 +0000
committerEric Christopher <echristo@apple.com>2010-11-16 01:58:21 +0000
commit08c083148b1adffcadd7cf6e55df703a511caff6 (patch)
treeb82fa36b20a12f8b23cbb48b65f88ff1fdf94d6f /llvm/lib/CodeGen/MachineVerifier.cpp
parent4b4f36990d2008aa5e8510ef511c8dd7eb4a0a7b (diff)
downloadbcm5719-llvm-08c083148b1adffcadd7cf6e55df703a511caff6.tar.gz
bcm5719-llvm-08c083148b1adffcadd7cf6e55df703a511caff6.zip
Make the verifier a little quieter on instructions that it's probably
(and likely) wrong about anyhow. llvm-svn: 119320
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 8ada60a5533..47a94b35c76 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -558,7 +558,9 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
else if (MO->isImplicit())
report("Explicit definition marked as implicit", MO, MONum);
} else if (MONum < TI.getNumOperands()) {
- if (MO->isReg()) {
+ // Don't check if it's a variadic instruction. See, e.g., LDM_RET in the arm
+ // back end.
+ if (MO->isReg() && MONum != TI.getNumOperands()-1) {
if (MO->isDef())
report("Explicit operand marked as def", MO, MONum);
if (MO->isImplicit())
OpenPOWER on IntegriCloud