Unbreak non-debug build.
authorEvan Cheng <evan.cheng@apple.com>
Mon, 11 May 2009 18:40:52 +0000 (18:40 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 11 May 2009 18:40:52 +0000 (18:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71457 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PrologEpilogInserter.cpp

index 6015d74abe7bc4b43a0177b0fd172cfc94aa1b84..44719151c51b6aaf07d887a7c58edb094535b419 100644 (file)
@@ -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
   }
 }