[llvm-commits] [poolalloc] r129758 - in /poolalloc/trunk/lib/AssistDS: GEPExprArg.cpp LoadArgs.cpp TestGEP.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Tue Apr 19 08:18:42 PDT 2011


Author: aggarwa4
Date: Tue Apr 19 10:18:42 2011
New Revision: 129758

URL: http://llvm.org/viewvc/llvm-project?rev=129758&view=rev
Log:
We have added arguments to the call instruction,
we can't copy over attributes.

Modified:
    poolalloc/trunk/lib/AssistDS/GEPExprArg.cpp
    poolalloc/trunk/lib/AssistDS/LoadArgs.cpp
    poolalloc/trunk/lib/AssistDS/TestGEP.cpp

Modified: poolalloc/trunk/lib/AssistDS/GEPExprArg.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/GEPExprArg.cpp?rev=129758&r1=129757&r2=129758&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/GEPExprArg.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/GEPExprArg.cpp Tue Apr 19 10:18:42 2011
@@ -127,7 +127,6 @@
             }
             CallInst *CallI = CallInst::Create(NewF,Args.begin(), Args.end(),"", CI);
             CallI->setCallingConv(CI->getCallingConv());
-            CallI->setAttributes(CI->getAttributes());
             CI->replaceAllUsesWith(CallI);
             CI->eraseFromParent();
           }

Modified: poolalloc/trunk/lib/AssistDS/LoadArgs.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/LoadArgs.cpp?rev=129758&r1=129757&r2=129758&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/LoadArgs.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/LoadArgs.cpp Tue Apr 19 10:18:42 2011
@@ -136,13 +136,6 @@
               }
               CallInst *CallI = CallInst::Create(NewF,Args.begin(), Args.end(),"", CI);
               CallI->setCallingConv(CI->getCallingConv());
-              CallI->setAttributes(CI->getAttributes());
-              CI->dump();
-              CallI->dump();
-              LI->dump();
-              LI_new->dump();
-              //F->dump();
-              //NewF->dump();
               CI->replaceAllUsesWith(CallI);
               CI->eraseFromParent();
             }

Modified: poolalloc/trunk/lib/AssistDS/TestGEP.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/TestGEP.cpp?rev=129758&r1=129757&r2=129758&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/TestGEP.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/TestGEP.cpp Tue Apr 19 10:18:42 2011
@@ -133,7 +133,6 @@
               }
               CallInst *CallI = CallInst::Create(NewF,Args.begin(), Args.end(),"", CI);
               CallI->setCallingConv(CI->getCallingConv());
-              CallI->setAttributes(CI->getAttributes());
               CI->replaceAllUsesWith(CallI);
               CI->eraseFromParent();
             }





More information about the llvm-commits mailing list