[llvm] r226138 - SimplifyIndVar: Remove unused variable
David Majnemer
david.majnemer at gmail.com
Wed Jan 14 23:11:23 PST 2015
Author: majnemer
Date: Thu Jan 15 01:11:23 2015
New Revision: 226138
URL: http://llvm.org/viewvc/llvm-project?rev=226138&view=rev
Log:
SimplifyIndVar: Remove unused variable
OtherOperandIdx is not used anymore, remove it to silence warnings.
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp?rev=226138&r1=226137&r2=226138&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyIndVar.cpp Thu Jan 15 01:11:23 2015
@@ -288,14 +288,11 @@ bool SimplifyIndvar::strengthenOverflowi
IntegerType *IT = cast<IntegerType>(IVOperand->getType());
Value *OtherOperand = nullptr;
- int OtherOperandIdx = -1;
if (BO->getOperand(0) == IVOperand) {
OtherOperand = BO->getOperand(1);
- OtherOperandIdx = 1;
} else {
assert(BO->getOperand(1) == IVOperand && "only other use!");
OtherOperand = BO->getOperand(0);
- OtherOperandIdx = 0;
}
bool Changed = false;
More information about the llvm-commits
mailing list