[llvm-commits] [poolalloc] r155822 - /poolalloc/trunk/lib/AssistDS/IndCloner.cpp
Will Dietz
wdietz2 at illinois.edu
Mon Apr 30 07:27:56 PDT 2012
Author: wdietz2
Date: Mon Apr 30 09:27:55 2012
New Revision: 155822
URL: http://llvm.org/viewvc/llvm-project?rev=155822&view=rev
Log:
Fixup IndCloner to not treat operand 0 as callee (it's not any longer).
IndCloner can now actually rewrite callsites.
Modified:
poolalloc/trunk/lib/AssistDS/IndCloner.cpp
Modified: poolalloc/trunk/lib/AssistDS/IndCloner.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/IndCloner.cpp?rev=155822&r1=155821&r2=155822&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/IndCloner.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/IndCloner.cpp Mon Apr 30 09:27:55 2012
@@ -151,9 +151,9 @@
CallInst *CI = dyn_cast<CallInst>(*ui);
ui++;
if (CI) {
- if (CI->getOperand(0) == Original) {
+ if (CI->getCalledFunction() == Original) {
++numReplaced;
- CI->setOperand(0, DirectF);
+ CI->setCalledFunction(DirectF);
}
}
}
More information about the llvm-commits
mailing list