[llvm-commits] [llvm] r60541 - /llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp
Scott Michel
scottm at aero.org
Thu Dec 4 09:17:01 PST 2008
Author: pingbak
Date: Thu Dec 4 11:16:59 2008
New Revision: 60541
URL: http://llvm.org/viewvc/llvm-project?rev=60541&view=rev
Log:
Missing closing brace and reverse conditional condition on NDEBUG
Modified:
llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp?rev=60541&r1=60540&r2=60541&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/CellSPU/SPUISelLowering.cpp Thu Dec 4 11:16:59 2008
@@ -766,7 +766,7 @@
LN->getSrcValue(), LN->getSrcValueOffset(),
LN->isVolatile(), LN->getAlignment());
-#if 0 && defined(NDEBUG)
+#if 0 && !defined(NDEBUG)
if (DebugFlag && isCurrentDebugType(DEBUG_TYPE)) {
const SDValue ¤tRoot = DAG.getRoot();
@@ -3021,7 +3021,7 @@
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 @@
// (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;
More information about the llvm-commits
mailing list