aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 (patch)
treedcdecdda0cd3e1168527d832f3824e0c94b3ef60 /lib/Transforms
parentf22696f209701bff12edbe41c646d1ef179c685d (diff)
downloadexternal_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.zip
external_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.gz
external_llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.bz2
Neg instruction removed. Cast instruction implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
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);