Debug Info Verifier: disable it by default.
authorManman Ren <manman.ren@gmail.com>
Mon, 18 Nov 2013 03:19:31 +0000 (03:19 +0000)
committerManman Ren <manman.ren@gmail.com>
Mon, 18 Nov 2013 03:19:31 +0000 (03:19 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194986 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Verifier.cpp

index 3331a37defd92df3ebc50b1b4adda88b773fcd0d..0bcb118ecad6fbad102f631b8d3ccf043718d1a8 100644 (file)
@@ -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 {