[llvm-commits] [polly] r144227 - in /polly/trunk: include/polly/TempScopInfo.h lib/Analysis/TempScopInfo.cpp

Tobias Grosser grosser at fim.uni-passau.de
Wed Nov 9 14:34:49 PST 2011


Author: grosser
Date: Wed Nov  9 16:34:48 2011
New Revision: 144227

URL: http://llvm.org/viewvc/llvm-project?rev=144227&view=rev
Log:
Remove more unused stuff from SCEVAffFunc

Modified:
    polly/trunk/include/polly/TempScopInfo.h
    polly/trunk/lib/Analysis/TempScopInfo.cpp

Modified: polly/trunk/include/polly/TempScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/TempScopInfo.h?rev=144227&r1=144226&r2=144227&view=diff
==============================================================================
--- polly/trunk/include/polly/TempScopInfo.h (original)
+++ polly/trunk/include/polly/TempScopInfo.h Wed Nov  9 16:34:48 2011
@@ -38,12 +38,6 @@
 class SCEVAffFunc {
   // Temporary hack
   friend class TempScopInfo;
-  // The translation component
-  const SCEV *TransComp;
-
-  // { Variable, Coefficient }
-  typedef std::map<const SCEV*, const SCEV*> LnrTransSet;
-  LnrTransSet LnrTrans;
 
 public:
   // The scalar evolution expression from which we derived this affine
@@ -56,12 +50,8 @@
 
   // The type of the scev affine function
   enum SCEVAffFuncType {
-    None = 0,
-    ReadMem, // Or we could call it "Use"
-    WriteMem, // Or define
-    Eq,       // == 0
-    Ne,       // != 0
-    GE        // >= 0
+    ReadMem,
+    WriteMem
   };
 
 private:
@@ -77,58 +67,20 @@
   ///        condition type
   explicit SCEVAffFunc(SCEVAffFuncType Type, const SCEV *OriginalSCEV,
                        unsigned elemBytes = 0)
-    : TransComp(0), OriginalSCEV(OriginalSCEV), BaseAddr(0),
+    : OriginalSCEV(OriginalSCEV), BaseAddr(0),
       ElemBytes(elemBytes), FuncType(Type) {}
 
-  /// @brief Construct a new SCEVAffFunc from a SCEV
-  ///
-  /// @param S The SCEV that should be translated.
-  /// @param Type The type of this affine function.
-  /// @param R The region in which the affine function is evaluated.
-  /// @param Param A set of parameters, where new parameters found in this
-  ///        affine function will be added.
-  /// @param LI A pointer to a current LoopInfo analysis.
-  /// @param SE A pointer to a current ScalarEvolution analysis.
-  SCEVAffFunc(const SCEV *S, SCEVAffFuncType Type, Region &R,
-              ParamSetType &Param, LoopInfo *LI, ScalarEvolution *SE);
-
-  // getCoeff - Get the Coefficient of a given variable.
-  const SCEV *getCoeff(const SCEV *Var) const {
-    LnrTransSet::const_iterator At = LnrTrans.find(Var);
-    return At == LnrTrans.end() ? 0 : At->second;
-  }
-
-  const SCEV *getTransComp() const {
-    return TransComp;
-  }
-
   enum SCEVAffFuncType getType() const { return FuncType; }
 
-  bool isDataRef() const {
-    return getType() == ReadMem || getType() == WriteMem;
-  }
-
   unsigned getElemSizeInBytes() const {
-    assert(isDataRef() && "getElemSizeInBytes on the wrong type!");
     return ElemBytes;
   }
 
   bool isRead() const { return FuncType == ReadMem; }
 
   const Value *getBaseAddr() const { return BaseAddr; }
-
-  /// @brief Print the affine function.
-  ///
-  /// @param OS The output stream the affine function is printed to.
-  void print(raw_ostream &OS, bool PrintInequality = true) const;
-  void dump() const;
 };
 
-static inline raw_ostream& operator<<(raw_ostream &OS, const SCEVAffFunc &SAF){
-  SAF.print(OS);
-  return OS;
-}
-
 class Comparison {
 
   const SCEV *LHS;

Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=144227&r1=144226&r2=144227&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Wed Nov  9 16:34:48 2011
@@ -36,13 +36,6 @@
 //===----------------------------------------------------------------------===//
 /// Helper Class
 
-SCEVAffFunc::SCEVAffFunc(const SCEV *S, SCEVAffFuncType Type, Region &R,
-                         ParamSetType &Params, LoopInfo *LI,
-                         ScalarEvolution *SE)
-    : ElemBytes(0), FuncType(Type) {
-  OriginalSCEV = S;
-}
-
 void Comparison::print(raw_ostream &OS) const {
   // Not yet implemented.
 }





More information about the llvm-commits mailing list