diff options
author | Eli Friedman <efriedma@codeaurora.org> | 2018-12-21 01:28:49 +0000 |
---|---|---|
committer | Eli Friedman <efriedma@codeaurora.org> | 2018-12-21 01:28:49 +0000 |
commit | 3af2f534565caa91eaadb6e504847000db2673de (patch) | |
tree | a7a9ef49649fa503474189d9036fc27d35972ede /llvm/lib/Transforms/Utils/LoopUnroll.cpp | |
parent | 7b7813740382d6dc3eddc51f51d0428537f33b15 (diff) | |
download | llvm-3af2f534565caa91eaadb6e504847000db2673de.zip llvm-3af2f534565caa91eaadb6e504847000db2673de.tar.gz llvm-3af2f534565caa91eaadb6e504847000db2673de.tar.bz2 |
[LoopUnroll] Don't verify domtree by default with +Asserts.
This verification is linear in the size of the function, so it can cause
a quadratic compile-time explosion in a function with many loops to
unroll.
Differential Revision: https://reviews.llvm.org/D54732
llvm-svn: 349871
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnroll.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/LoopUnroll.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnroll.cpp b/llvm/lib/Transforms/Utils/LoopUnroll.cpp index efd8b92..0ed4038 100644 --- a/llvm/lib/Transforms/Utils/LoopUnroll.cpp +++ b/llvm/lib/Transforms/Utils/LoopUnroll.cpp @@ -54,10 +54,10 @@ UnrollRuntimeEpilog("unroll-runtime-epilog", cl::init(false), cl::Hidden, static cl::opt<bool> UnrollVerifyDomtree("unroll-verify-domtree", cl::Hidden, cl::desc("Verify domtree after unrolling"), -#ifdef NDEBUG - cl::init(false) -#else +#ifdef EXPENSIVE_CHECKS cl::init(true) +#else + cl::init(false) #endif ); |