diff --git a/hpvm/include/SupportVISC/DFG2LLVM.h b/hpvm/include/SupportVISC/DFG2LLVM.h index bf250dd5d35f5d0876cfe1cd66eb71e0cd45ac38..439b6307546a8f8a356ca822dbf0e27b448ca81d 100644 --- a/hpvm/include/SupportVISC/DFG2LLVM.h +++ b/hpvm/include/SupportVISC/DFG2LLVM.h @@ -379,9 +379,8 @@ Function *CodeGenTraversal::addIdxDimArgs(Function* F) { Function *newF; for (int i = 0; i < 6; ++i) { newF = addArgument(F, Type::getInt64Ty(F->getContext()), names[i]); - ArgTypes.push_back(new_arg->getType()); F->replaceAllUsesWith(UndefValue::get(F->getType())); - // F->eraseFromParent(); + F->eraseFromParent(); F = newF; } errs() << "Function Type after adding args: " << *newF->getFunctionType() << "\n"; @@ -453,7 +452,7 @@ void CodeGenTraversal::initTimerAPI() { // Timer Routines // Initialize the timer set void CodeGenTraversal::initializeTimerSet(Instruction* InsertBefore) { - DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n"); + //DEBUG(errs() << "Inserting call to: " << *llvm_visc_initializeTimerSet << "\n"); TIMER(TimerSet = new GlobalVariable(M, Type::getInt8PtrTy(M.getContext()), false,