summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
commita682182f6485caf4f2bb23d2fe7f2e1d10d9fb2a (patch)
treeac566bc85cd22b41c0f530d82937408cd7c5e79a /llvm/lib/Transforms
parent52112fb34e6846c33208bab143b7815eefcb0421 (diff)
downloadbcm5719-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.cpp10
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);
OpenPOWER on IntegriCloud