[llvm] r194986 - Debug Info Verifier: disable it by default.

Manman Ren manman.ren at gmail.com
Sun Nov 17 19:19:31 PST 2013

Author: mren
Date: Sun Nov 17 21:19:31 2013
New Revision: 194986

URL: http://llvm.org/viewvc/llvm-project?rev=194986&view=rev
Debug Info Verifier: disable it by default.

Debug info verifier is part of the verifier which is a Function Pass.
Tot currently tries to pull all reachable debug info MDNodes in each function,
which is too time-consuming. The correct fix seems to be separating debug info
verification to its own module pass.

I will disable the debug info verifier until a correct fix is found.

For Bill's testing case, enabling debug info verifier increase compile
time from 11s to 11m.


Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=194986&r1=194985&r2=194986&view=diff
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Sun Nov 17 21:19:31 2013
@@ -78,7 +78,7 @@
 using namespace llvm;
 static cl::opt<bool> DisableDebugInfoVerifier("disable-debug-info-verifier",
-                                              cl::init(false));
+                                              cl::init(true));
 namespace {  // Anonymous namespace for class
   struct PreVerifier : public FunctionPass {

More information about the llvm-commits mailing list