[llvm-branch-commits] [llvm-branch] r100524 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 6 06:57:24 PDT 2010
Author: ggreif
Date: Tue Apr 6 08:57:24 2010
New Revision: 100524
URL: http://llvm.org/viewvc/llvm-project?rev=100524&view=rev
Log:
shift operands
Modified:
llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp?rev=100524&r1=100523&r2=100524&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp Tue Apr 6 08:57:24 2010
@@ -219,12 +219,12 @@
GS.HasPHIUser = true;
} else if (isa<CmpInst>(I)) {
} else if (isa<MemTransferInst>(I)) {
- if (I->getOperand(1) == V)
+ if (I->getOperand(0) == V)
GS.StoredType = GlobalStatus::isStored;
- if (I->getOperand(2) == V)
+ if (I->getOperand(1) == V)
GS.isLoaded = true;
} else if (isa<MemSetInst>(I)) {
- assert(I->getOperand(1) == V && "Memset only takes one pointer!");
+ assert(I->getOperand(0) == V && "Memset only takes one pointer!");
GS.StoredType = GlobalStatus::isStored;
} else {
return true; // Any other non-load instruction might take address!
More information about the llvm-branch-commits
mailing list