[llvm-commits] [polly] r143651 - in /polly/trunk: include/polly/TempScopInfo.h lib/Analysis/TempScopInfo.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Thu Nov 3 14:03:06 PDT 2011
Author: grosser
Date: Thu Nov 3 16:03:06 2011
New Revision: 143651
URL: http://llvm.org/viewvc/llvm-project?rev=143651&view=rev
Log:
TempScop: Remove has_signed (was unused)
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=143651&r1=143650&r2=143651&view=diff
==============================================================================
--- polly/trunk/include/polly/TempScopInfo.h (original)
+++ polly/trunk/include/polly/TempScopInfo.h Thu Nov 3 16:03:06 2011
@@ -71,19 +71,17 @@
Value *BaseAddr;
unsigned ElemBytes : 28;
SCEVAffFuncType FuncType : 3;
- bool has_sign : 1;
public:
/// @brief Create a new SCEV affine function.
- SCEVAffFunc() : TransComp(0), BaseAddr(0), ElemBytes(0), FuncType(None),
- has_sign(true) {}
+ SCEVAffFunc() : TransComp(0), BaseAddr(0), ElemBytes(0), FuncType(None) {}
/// @brief Create a new SCEV affine function with memory access type or
/// condition type
explicit SCEVAffFunc(SCEVAffFuncType Type, const SCEV *OriginalSCEV,
unsigned elemBytes = 0)
: TransComp(0), OriginalSCEV(OriginalSCEV), BaseAddr(0),
- ElemBytes(elemBytes), FuncType(Type), has_sign(true) {}
+ ElemBytes(elemBytes), FuncType(Type) {}
/// @brief Construct a new SCEVAffFunc from a SCEV
///
@@ -97,8 +95,6 @@
SCEVAffFunc(const SCEV *S, SCEVAffFuncType Type, Region &R,
ParamSetType &Param, LoopInfo *LI, ScalarEvolution *SE);
- void setUnsigned() {has_sign = false;}
-
// getCoeff - Get the Coefficient of a given variable.
const SCEV *getCoeff(const SCEV *Var) const {
LnrTransSet::const_iterator At = LnrTrans.find(Var);
@@ -109,8 +105,6 @@
return TransComp;
}
- bool isSigned() const { return has_sign; }
-
enum SCEVAffFuncType getType() const { return FuncType; }
bool isDataRef() const {
Modified: polly/trunk/lib/Analysis/TempScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/TempScopInfo.cpp?rev=143651&r1=143650&r2=143651&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/TempScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/TempScopInfo.cpp Thu Nov 3 16:03:06 2011
@@ -38,7 +38,7 @@
SCEVAffFunc::SCEVAffFunc(const SCEV *S, SCEVAffFuncType Type, Region &R,
ParamSetType &Params, LoopInfo *LI,
ScalarEvolution *SE)
- : ElemBytes(0), FuncType(Type), has_sign(true) {
+ : ElemBytes(0), FuncType(Type) {
assert(S && "S can not be null!");
assert(!isa<SCEVCouldNotCompute>(S) && "Non affine function in Scop");
More information about the llvm-commits
mailing list