Commit 52b5bb83 authored by guruhegde's avatar guruhegde

Enable LoopSplitting

parent 471db8cb
......@@ -99,27 +99,17 @@ int main(int argc, char * argv[]) {
}
if (FnStr.second.compare("tas_batch_maker") == 0) {
errs() << "Non batch function " << FnStr.first->getName() << "\n";
errs() << "Running block predication\n";
tas::BlockPredication BP (FnStr.first);
auto res = BP.run();
// Make Batch version
errs() << "Running batching\n";
tas::BatchMaker BM(FnStr.first);
auto BatchFunc = BM.run();
errs() << BatchFunc->getName() << "\n";
// Loop Splitting
DominatorTree DT(*BatchFunc);
LoopInfo LI(DT);
tas::LoopSplitter LS(BatchFunc, &LI);
res = LS.run();
}
/*
writeToAsmFile(*M);
// Loop Splitting
DominatorTree DT(*BatchFunc);
LoopInfo LI(DT);
tas::LoopSplitter LS(BatchFunc, &LI);
res = LS.run();
errs() << res << "\n";
*/
}
writeToAsmFile(*M);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment