aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/PrologEpilogInserter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-05-11 18:40:52 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-05-11 18:40:52 +0000
commit2b1b92189d4cb1609d2cc6946e9a2f1b07a45424 (patch)
treecda3b9afbd4eef6f65db74acddc52eb432f49013 /llvm/lib/CodeGen/PrologEpilogInserter.cpp
parentc84bf99f58f5053e220739f2031a23c7264d3aa3 (diff)
downloadllvm-2b1b92189d4cb1609d2cc6946e9a2f1b07a45424.zip
llvm-2b1b92189d4cb1609d2cc6946e9a2f1b07a45424.tar.gz
llvm-2b1b92189d4cb1609d2cc6946e9a2f1b07a45424.tar.bz2
Unbreak non-debug build.
llvm-svn: 71457
Diffstat (limited to 'llvm/lib/CodeGen/PrologEpilogInserter.cpp')
-rw-r--r--llvm/lib/CodeGen/PrologEpilogInserter.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp
index 6015d74..4471915 100644
--- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp
+++ b/llvm/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
}
}