Missing closing brace and reverse conditional condition on NDEBUG
authorScott Michel <scottm@aero.org>
Thu, 4 Dec 2008 17:16:59 +0000 (17:16 +0000)
committerScott Michel <scottm@aero.org>
Thu, 4 Dec 2008 17:16:59 +0000 (17:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60541 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CellSPU/SPUISelLowering.cpp

index a08ee876f873f21f825988d231e857b6645e1f2d..17d88a937adeaab31e3317297ccba96e0ae5bfb3 100644 (file)
@@ -766,7 +766,7 @@ LowerSTORE(SDValue Op, SelectionDAG &DAG, const SPUSubtarget *ST) {
                           LN->getSrcValue(), LN->getSrcValueOffset(),
                           LN->isVolatile(), LN->getAlignment());
 
-#if 0 && defined(NDEBUG)
+#if 0 && !defined(NDEBUG)
     if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) {
       const SDValue &currentRoot = DAG.getRoot();
 
@@ -3021,7 +3021,7 @@ SPUTargetLowering::PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const
         SDValue combinedConst =
           DAG.getConstant(CN0->getZExtValue() + CN1->getZExtValue(), Op0VT);
 
-#if defined(NDEBUG)
+#if !defined(NDEBUG)
         if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) {
             cerr << "\n"
                  << "Replace: (add " << CN0->getZExtValue() << ", "
@@ -3064,14 +3064,14 @@ SPUTargetLowering::PerformDAGCombine(SDNode *N, DAGCombinerInfo &DCI) const
       // (any_extend (SPUextract_elt0 <arg>)) ->
       // (SPUextract_elt0 <arg>)
       // Types must match, however...
-#if defined(NDEBUG)
-    //  if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) {
+#if !defined(NDEBUG)
+      if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) {
         cerr << "\nReplace: ";
         N->dump(&DAG);
         cerr << "\nWith:    ";
         Op0.getNode()->dump(&DAG);
         cerr << "\n";
-      
+      }
 #endif
 
       return Op0;