[llvm-branch-commits] [llvm-branch] r100580 - /llvm/branches/ggreif/CallInst-operands/lib/Transforms/IPO/GlobalOpt.cpp
Gabor Greif
ggreif at gmail.com
Tue Apr 6 16:27:32 PDT 2010
Author: ggreif
Date: Tue Apr 6 18:27:32 2010
New Revision: 100580
URL: http://llvm.org/viewvc/llvm-project?rev=100580&view=rev
Log:
shift operand range
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=100580&r1=100579&r2=100580&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 18:27:32 2010
@@ -1625,7 +1625,7 @@
// bool.
Instruction *StoredVal = cast<Instruction>(SI->getOperand(0));
- // If we're already replaced the input, StoredVal will be a cast or
+ // If we've already replaced the input, StoredVal will be a cast or
// select instruction. If not, it will be a load of the original
// global.
if (LoadInst *LI = dyn_cast<LoadInst>(StoredVal)) {
@@ -2286,7 +2286,7 @@
if (!Callee) return false; // Cannot resolve.
SmallVector<Constant*, 8> Formals;
- for (User::op_iterator i = CI->op_begin() + 1, e = CI->op_end();
+ for (User::op_iterator i = CI->op_begin(), e = CI->op_end() - 1;
i != e; ++i)
Formals.push_back(getVal(Values, *i));
More information about the llvm-branch-commits
mailing list