diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-05-11 18:40:52 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-05-11 18:40:52 +0000 |
commit | 6afd198fd8bb3b1985182ea990a3b98f50ef7b79 (patch) | |
tree | 3257d52c0232fcd8b199e4f163a714634718d115 /lib/CodeGen/PrologEpilogInserter.cpp | |
parent | ec51b58b1c9b58087e74eff7717205f277e3013b (diff) | |
download | external_llvm-6afd198fd8bb3b1985182ea990a3b98f50ef7b79.zip external_llvm-6afd198fd8bb3b1985182ea990a3b98f50ef7b79.tar.gz external_llvm-6afd198fd8bb3b1985182ea990a3b98f50ef7b79.tar.bz2 |
Unbreak non-debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r-- | lib/CodeGen/PrologEpilogInserter.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/PrologEpilogInserter.cpp b/lib/CodeGen/PrologEpilogInserter.cpp index 6015d74..4471915 100644 --- a/lib/CodeGen/PrologEpilogInserter.cpp +++ b/lib/CodeGen/PrologEpilogInserter.cpp @@ -337,7 +337,9 @@ void PEI::clearAllSets() { void PEI::initShrinkWrappingInfo() { clearAllSets(); EntryBlock = 0; +#ifndef NDEBUG HasFastExitPath = false; +#endif ShrinkWrapThisFunction = ShrinkWrapping; // DEBUG: enable or disable shrink wrapping for the current function // via --shrink-wrap-func=<funcname>. @@ -1656,7 +1658,9 @@ void PEI::findFastExitPath() { MachineBasicBlock* SUCC = *SI; // Assume positive, disprove existence of fast path. +#ifndef NDEBUG HasFastExitPath = true; +#endif // Check the immediate successors. if (isReturnBlock(SUCC)) { @@ -1672,17 +1676,21 @@ void PEI::findFastExitPath() { MachineBasicBlock* SBB = *BI; // Reject paths with branch nodes. if (SBB->succ_size() > 1) { +#ifndef NDEBUG HasFastExitPath = false; +#endif break; } exitPath += "->" + getBasicBlockName(SBB); } +#ifndef NDEBUG if (HasFastExitPath) { if (ShrinkWrapDebugging >= BasicInfo) DOUT << "Fast exit path: " << getBasicBlockName(EntryBlock) << "->" << exitPath << "\n"; break; } +#endif } } |