diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-03 14:39:24 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-10-03 14:39:24 -0600 |
commit | 342af96cd123860b3fbe0fe9b0669627cefca1cc (patch) | |
tree | b691d3fb21d1c9907076176db6d40137d22d5b1a /src | |
parent | d2176835fc6e497a6c3e19b4630745c3911bde2c (diff) | |
download | chill-342af96cd123860b3fbe0fe9b0669627cefca1cc.tar.gz chill-342af96cd123860b3fbe0fe9b0669627cefca1cc.tar.bz2 chill-342af96cd123860b3fbe0fe9b0669627cefca1cc.zip |
doc
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"); |