diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-08 04:57:15 +0000 |
| commit | a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a (patch) | |
| tree | ac566bc85cd22b41c0f530d82937408cd7c5e79a /llvm/lib/Transforms | |
| parent | 52112fb34e6846c33208bab143b7815eefcb0421 (diff) | |
| download | bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.tar.gz bcm5719-llvm-a682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a.zip | |
Neg instruction removed. Cast instruction implemented.
llvm-svn: 156
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InductionVars.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductionVars.cpp b/llvm/lib/Transforms/Scalar/InductionVars.cpp index c59a441fad4..4f88685fc1f 100644 --- a/llvm/lib/Transforms/Scalar/InductionVars.cpp +++ b/llvm/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); |

