From 74ee46f3ec81289fee9ce072247f8f21f31fb503 Mon Sep 17 00:00:00 2001 From: Akash Kothari <akashk4@tyler.cs.illinois.edu> Date: Mon, 13 Jan 2020 08:56:12 -0600 Subject: [PATCH] Removing dead code in VISCUtils header --- hpvm/include/SupportVISC/VISCUtils.h | 38 ---------------------------- 1 file changed, 38 deletions(-) diff --git a/hpvm/include/SupportVISC/VISCUtils.h b/hpvm/include/SupportVISC/VISCUtils.h index 109a8cee8c..9b9f813e95 100644 --- a/hpvm/include/SupportVISC/VISCUtils.h +++ b/hpvm/include/SupportVISC/VISCUtils.h @@ -102,44 +102,6 @@ IntrinsicInst* createIdenticalCreateNodeIntrinsicWithDifferentFunction(Function* IntrinsicInst* CreateNodeII = cast<IntrinsicInst>(CI); return CreateNodeII; } -/* -CallInst* createIdenticalCreateNodeCallWithDifferentFunction(Function* F, - CallInst* CI) { - - // Find which createNode function call we need to create - Function* CreateNodeF = CI->getCalledValue(); - - ArrayRef<Value*> CreateNodeArgs; - if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode")) { - // This is a createNode call - CreateNodeArgs = ArrayRef<Value*>(CreateNodeF); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode1D")) { - // This is a createNode1D call - Value* CreateNode1DArgs[] = {CreateNodeF, CI->getArgOperand(1)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode1DArgs, 2); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode2D")) { - // This is a createNode2D call - Value* CreateNode2DArgs[] = {CreateNodeF, - CI->getArgOperand(1), - CI->getArgOperand(2)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode2DArgs, 3); - } else if ((CreateNodeF->stripPointerCasts()->getName()).equals("__visc__createNode3D")) { - // This is a createNode3D call - Value* CreateNode3DArgs[] = {CreateNodeF, - CI->getArgOperand(1), - CI->getArgOperand(2), - CI->getArgOperand(3)}; - CreateNodeArgs = ArrayRef<Value*>(CreateNode3DArgs, 4); - } else { - assert(false && "Unknown createNode call"); - } - - CallInst* newCI = CallInst::Create(CreateNodeF, - CreateNodeArgs, - F->getName()+".cncall"); - return newCI; -} -*/ // Fix VISC hints for this function void fixHintMetadata(Module &M, Function* F, Function* G) { -- GitLab