summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-11-03 21:03:06 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-11-03 21:03:06 +0000
commit56f4745c3f6b14dcfe0e4513332233cd33c91edb (patch)
tree92e1d75f55e9a503b2fe5c382d16698fc1ce6717
parentad96c4b06d2a6fbf976422dc845605c82ea3295f (diff)
downloadbcm5719-llvm-56f4745c3f6b14dcfe0e4513332233cd33c91edb.tar.gz
bcm5719-llvm-56f4745c3f6b14dcfe0e4513332233cd33c91edb.zip
TempScop: Remove has_signed (was unused)
llvm-svn: 143651
-rwxr-xr-xpolly/include/polly/TempScopInfo.h10
-rw-r--r--polly/lib/Analysis/TempScopInfo.cpp2
2 files changed, 3 insertions, 9 deletions
diff --git a/polly/include/polly/TempScopInfo.h b/polly/include/polly/TempScopInfo.h
index 0a524ef1218..04df6dabf04 100755
--- a/polly/include/polly/TempScopInfo.h
+++ b/polly/include/polly/TempScopInfo.h
@@ -71,19 +71,17 @@ private:
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 @@ public:
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 @@ public:
return TransComp;
}
- bool isSigned() const { return has_sign; }
-
enum SCEVAffFuncType getType() const { return FuncType; }
bool isDataRef() const {
diff --git a/polly/lib/Analysis/TempScopInfo.cpp b/polly/lib/Analysis/TempScopInfo.cpp
index 40bdbc072ed..2edb1342e17 100644
--- a/polly/lib/Analysis/TempScopInfo.cpp
+++ b/polly/lib/Analysis/TempScopInfo.cpp
@@ -38,7 +38,7 @@ using namespace polly;
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");
OpenPOWER on IntegriCloud