aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InductionVars.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Transforms/Scalar/InductionVars.cpp b/lib/Transforms/Scalar/InductionVars.cpp
index c59a441..4f88685 100644
--- a/lib/Transforms/Scalar/InductionVars.cpp
+++ b/lib/Transforms/Scalar/InductionVars.cpp
@@ -79,16 +79,6 @@ static LIVType isLinearInductionVariableH(cfg::Interval *Int, Value *V,
// loop variant computations must be instructions!
Instruction *I = V->castInstructionAsserting();
switch (I->getOpcode()) { // Handle each instruction seperately
- case Instruction::Neg: {
- Value *SubV = ((UnaryOperator*)I)->getOperand(0);
- LIVType SubLIVType = isLinearInductionVariableH(Int, SubV, PN);
- switch (SubLIVType) {
- case isLIC: // Loop invariant & other computations remain the same
- case isOther: return SubLIVType;
- case isLIV: // Return the opposite signed LIV type
- case isNLIV: return neg(isLIV);
- }
- }
case Instruction::Add:
case Instruction::Sub: {
Value *SubV1 = ((BinaryOperator*)I)->getOperand(0);