diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/irtools.cc | 8 | ||||
| -rw-r--r-- | src/transformations/loop.cc | 5 | 
2 files changed, 6 insertions, 7 deletions
| diff --git a/src/irtools.cc b/src/irtools.cc index 55ef57f..31747a1 100644 --- a/src/irtools.cc +++ b/src/irtools.cc @@ -412,7 +412,7 @@ test_data_dependences(IR_Code *ir,            // Manu:: check if the array references belong to the same statement            // If yes, set the flag in the dependence vector            //---------------------------------------------- -          if (DEP_DEBUG) { +          CHILL_DEBUG_BEGIN              std::cout << "Size of the dependence vector '" << a->name().c_str() << "'  -- " << dv.first.size() << "\n";              std::cout << "------------ Printing dependence vector START ---------------\n"; @@ -446,7 +446,7 @@ test_data_dependences(IR_Code *ir,                }              }              std::cout << "------------ Printing dependence vector END---------------\n"; -          } +          CHILL_DEBUG_END            checkReductionDependence(i, j, nestLeveli, lbound, ubound, ref2Stmt, rMap, dv, trMap, nrStmts);            //---------------------------------------------- @@ -708,10 +708,10 @@ checkReductionDependence(int i, int j, int nestLeveli, omega::coef_t lbound[], o      }  //            if ((rMap.find(ref2Stmt[i])->second).size() == 3) { -    if (DEP_DEBUG) { +    CHILL_DEBUG_BEGIN        std::cout << "lbounds: " << lbound[0] << ", " << lbound[1] << ", " << lbound[2] << "\n";        std::cout << "ubounds: " << ubound[0] << ", " << ubound[1] << ", " << ubound[2] << "\n"; -    } +    CHILL_DEBUG_END      if (((rMap.find(ref2Stmt[i])->second).size() == 3) && (lbound[0] == lbound[1]) && (lbound[1] == lbound[2])          && (ubound[0] == ubound[1]) && (ubound[1] == ubound[2])) {  //              std::cout << "Manu:: All dependences present 1 \n"; diff --git a/src/transformations/loop.cc b/src/transformations/loop.cc index d34f415..3e040fd 100644 --- a/src/transformations/loop.cc +++ b/src/transformations/loop.cc @@ -1002,8 +1002,7 @@ Loop::Loop(const IR_Control *control) {    }    // printing out stuff for debugging - -  if (DEP_DEBUG) { +  CHILL_DEBUG_BEGIN      std::cout << "STATEMENTS THAT CAN BE REDUCED: \n";      for (int i = 0; i < canReduce.size(); i++) {        std::cout << "------- " << canReduce[i] << " ------- " @@ -1020,7 +1019,7 @@ Loop::Loop(const IR_Control *control) {        else          std::cout << "Unknown reduction type\n";      } -  } +  CHILL_DEBUG_END    // cleanup the IR tree    fprintf(stderr, "init dumb transformation relations\n"); | 
