diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-07-11 20:38:25 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-07-11 20:38:25 +0000 |
commit | d0cca2415099e80bd11e6b2090896719b07afd93 (patch) | |
tree | 4f93505e9c1a58ee13aadd2d1d35052b64ba2c71 /include/llvm/Analysis | |
parent | 4f0664949729778a3551970cd74e976f0d9a046f (diff) | |
download | external_llvm-d0cca2415099e80bd11e6b2090896719b07afd93.zip external_llvm-d0cca2415099e80bd11e6b2090896719b07afd93.tar.gz external_llvm-d0cca2415099e80bd11e6b2090896719b07afd93.tar.bz2 |
Revert r75252 which was causing some crashes at compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 62 | ||||
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpressions.h | 6 |
2 files changed, 9 insertions, 59 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index d786fb0..e57b2ad 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -26,7 +26,6 @@ #include "llvm/Support/DataTypes.h" #include "llvm/Support/ValueHandle.h" #include "llvm/Support/Allocator.h" -#include "llvm/Support/ConstantRange.h" #include "llvm/ADT/FoldingSet.h" #include "llvm/ADT/DenseMap.h" #include <iosfwd> @@ -334,20 +333,12 @@ namespace llvm { /// found. BasicBlock* getPredecessorWithUniqueSuccessorForBB(BasicBlock *BB); - /// isNecessaryCond - Test whether the condition described by Pred, LHS, - /// and RHS is a necessary condition for the given Cond value to evaluate - /// to true. + /// isNecessaryCond - Test whether the given CondValue value is a condition + /// which is at least as strict as the one described by Pred, LHS, and RHS. bool isNecessaryCond(Value *Cond, ICmpInst::Predicate Pred, const SCEV *LHS, const SCEV *RHS, bool Inverse); - /// isNecessaryCondOperands - Test whether the condition described by Pred, - /// LHS, and RHS is a necessary condition for the condition described by - /// Pred, FoundLHS, and FoundRHS to evaluate to true. - bool isNecessaryCondOperands(ICmpInst::Predicate Pred, - const SCEV *LHS, const SCEV *RHS, - const SCEV *FoundLHS, const SCEV *FoundRHS); - /// getConstantEvolutionLoopExitValue - If we know that the specified Phi is /// in the header of its containing loop, we know the loop executes a /// constant number of times, and the PHI node is just a recurrence @@ -507,16 +498,10 @@ namespace llvm { /// isLoopGuardedByCond - Test whether entry to the loop is protected by /// a conditional between LHS and RHS. This is used to help avoid max - /// expressions in loop trip counts, and to eliminate casts. + /// expressions in loop trip counts. bool isLoopGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, const SCEV *LHS, const SCEV *RHS); - /// isLoopBackedgeGuardedByCond - Test whether the backedge of the loop is - /// protected by a conditional between LHS and RHS. This is used to - /// to eliminate casts. - bool isLoopBackedgeGuardedByCond(const Loop *L, ICmpInst::Predicate Pred, - const SCEV *LHS, const SCEV *RHS); - /// getBackedgeTakenCount - If the specified loop has a predictable /// backedge-taken count, return it, otherwise return a SCEVCouldNotCompute /// object. The backedge-taken count is the number of times the loop header @@ -552,42 +537,13 @@ namespace llvm { /// bitwidth of S. uint32_t GetMinTrailingZeros(const SCEV *S); - /// getUnsignedRange - Determine the unsigned range for a particular SCEV. - /// - ConstantRange getUnsignedRange(const SCEV *S); - - /// getSignedRange - Determine the signed range for a particular SCEV. - /// - ConstantRange getSignedRange(const SCEV *S); - - /// isKnownNegative - Test if the given expression is known to be negative. - /// - bool isKnownNegative(const SCEV *S); - - /// isKnownPositive - Test if the given expression is known to be positive. - /// - bool isKnownPositive(const SCEV *S); - - /// isKnownNonNegative - Test if the given expression is known to be - /// non-negative. - /// - bool isKnownNonNegative(const SCEV *S); - - /// isKnownNonPositive - Test if the given expression is known to be - /// non-positive. - /// - bool isKnownNonPositive(const SCEV *S); - - /// isKnownNonZero - Test if the given expression is known to be - /// non-zero. - /// - bool isKnownNonZero(const SCEV *S); + /// GetMinLeadingZeros - Determine the minimum number of zero bits that S is + /// guaranteed to begin with (at every loop iteration). + uint32_t GetMinLeadingZeros(const SCEV *S); - /// isKnownNonZero - Test if the given expression is known to satisfy - /// the condition described by Pred, LHS, and RHS. - /// - bool isKnownPredicate(ICmpInst::Predicate Pred, - const SCEV *LHS, const SCEV *RHS); + /// GetMinSignBits - Determine the minimum number of sign bits that S is + /// guaranteed to begin with. + uint32_t GetMinSignBits(const SCEV *S); virtual bool runOnFunction(Function &F); virtual void releaseMemory(); diff --git a/include/llvm/Analysis/ScalarEvolutionExpressions.h b/include/llvm/Analysis/ScalarEvolutionExpressions.h index fc03e9f..a8fa4bb 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -454,12 +454,6 @@ namespace llvm { const SCEV *Conc, ScalarEvolution &SE) const; - /// getPostIncExpr - Return an expression representing the value of - /// this expression one iteration of the loop ahead. - const SCEV *getPostIncExpr(ScalarEvolution &SE) const { - return SE.getAddExpr(this, getStepRecurrence(SE)); - } - virtual void print(raw_ostream &OS) const; /// Methods for support type inquiry through isa, cast, and dyn_cast: |