[llvm-branch-commits] [llvm-branch] r100522 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 6 05:55:57 PDT 2010
Author: ggreif
Date: Tue Apr 6 07:55:56 2010
New Revision: 100522
URL: http://llvm.org/viewvc/llvm-project?rev=100522&view=rev
Log:
stash the new intrinsic in the right place
Modified:
llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp?rev=100522&r1=100521&r2=100522&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Transforms/Scalar/MemCpyOptimizer.cpp Tue Apr 6 07:55:56 2010
@@ -729,7 +729,7 @@
// If not, then we know we can transform this.
Module *Mod = M->getParent()->getParent()->getParent();
const Type *Ty = M->getLength()->getType();
- M->setOperand(0, Intrinsic::getDeclaration(Mod, Intrinsic::memcpy, &Ty, 1));
+ M->setCalledFunction(Intrinsic::getDeclaration(Mod, Intrinsic::memcpy, &Ty, 1));
// MemDep may have over conservative information about this instruction, just
// conservatively flush it from the cache.
More information about the llvm-branch-commits
mailing list