summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-10-11 00:48:30 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-10-11 00:48:30 -0600
commitef6c738921bc3ba4cbd62e649114632bc653f2a6 (patch)
tree48587436faada918f615123c1cc6a2ba3be588ad
parent4e22699cb200c413a46f1affc38c89559a20c9e0 (diff)
downloadchill-ef6c738921bc3ba4cbd62e649114632bc653f2a6.tar.gz
chill-ef6c738921bc3ba4cbd62e649114632bc653f2a6.tar.bz2
chill-ef6c738921bc3ba4cbd62e649114632bc653f2a6.zip
cleanup
-rw-r--r--src/transformations/loop.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/transformations/loop.cc b/src/transformations/loop.cc
index 857ce3a..0a0133f 100644
--- a/src/transformations/loop.cc
+++ b/src/transformations/loop.cc
@@ -338,11 +338,6 @@ void Loop::buildIS(std::vector<ir_tree_node*> &ir_tree,std::vector<int> &lexical
vars_to_be_replaced.push_back(lp->index()->name());
vars_replacement.push_back(ivar);
- for (int k=0;k<vars_to_be_replaced.size();++k){
- std::cout<<vars_to_be_replaced[k]<<":";
- vars_replacement[k]->dump();
- }
-
int step = lp->step_size();
CG_outputRepr *lb = lp->lower_bound();
CG_outputRepr *ub = lp->upper_bound();
@@ -365,13 +360,10 @@ void Loop::buildIS(std::vector<ir_tree_node*> &ir_tree,std::vector<int> &lexical
vars_replacement.push_back(ocg->CreateMinus(NULL,ivar));
step = -step;
}
- lb -> dump();
exp2formula(ir,r,f_root,freevar,lb,v,'s',IR_COND_GE,true,uninterpreted_symbols[loc],uninterpreted_symbols_stringrepr[loc]);
- r.print();
if (cond == IR_COND_LT || cond == IR_COND_LE)
exp2formula(ir,r,f_root,freevar,ub,v,'s',cond,true,uninterpreted_symbols[loc],uninterpreted_symbols_stringrepr[loc]);
else throw chill::error::ir("loop condition not supported");
- r.print();
// strided
if (step != 1) {
@@ -432,7 +424,6 @@ void Loop::buildIS(std::vector<ir_tree_node*> &ir_tree,std::vector<int> &lexical
lexicalOrder.emplace_back(lexicalOrder[lexicalOrder.size()-1] + 1);
} catch (chill::error::ir &e) {
// roll back
- std::cout<<e.what()<<std::endl;
ir_stmt.pop_back();
stmt.pop_back();
uninterpreted_symbols.pop_back();