[llvm-commits] [llvm] r119320 - /llvm/trunk/lib/CodeGen/MachineVerifier.cpp

Eric Christopher echristo at apple.com
Mon Nov 15 17:58:21 PST 2010


Author: echristo
Date: Mon Nov 15 19:58:21 2010
New Revision: 119320

URL: http://llvm.org/viewvc/llvm-project?rev=119320&view=rev
Log:
Make the verifier a little quieter on instructions that it's probably
(and likely) wrong about anyhow.

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=119320&r1=119319&r2=119320&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Mon Nov 15 19:58:21 2010
@@ -558,7 +558,9 @@
     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())





More information about the llvm-commits mailing list