diff options
Diffstat (limited to 'polly/lib/Support/SCEVValidator.cpp')
-rw-r--r-- | polly/lib/Support/SCEVValidator.cpp | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/polly/lib/Support/SCEVValidator.cpp b/polly/lib/Support/SCEVValidator.cpp index ffaf3dcddc6..d5b4a34ae13 100644 --- a/polly/lib/Support/SCEVValidator.cpp +++ b/polly/lib/Support/SCEVValidator.cpp @@ -437,30 +437,22 @@ private: }; namespace polly { - bool hasScalarDepsInsideRegion(const SCEV *Expr, const Region *R) { - return SCEVInRegionDependences::hasDependences(Expr, R); - } +bool hasScalarDepsInsideRegion(const SCEV *Expr, const Region *R) { + return SCEVInRegionDependences::hasDependences(Expr, R); +} - bool isAffineExpr(const Region *R, const SCEV *Expr, ScalarEvolution &SE, - const Value *BaseAddress) { - if (isa<SCEVCouldNotCompute>(Expr)) +bool isAffineExpr(const Region *R, const SCEV *Expr, ScalarEvolution &SE, + const Value *BaseAddress) { + if (isa<SCEVCouldNotCompute>(Expr)) return false; SCEVValidator Validator(R, SE, BaseAddress); - DEBUG( - dbgs() << "\n"; - dbgs() << "Expr: " << *Expr << "\n"; - dbgs() << "Region: " << R->getNameStr() << "\n"; - dbgs() << " -> " - ); + DEBUG(dbgs() << "\n"; dbgs() << "Expr: " << *Expr << "\n"; + dbgs() << "Region: " << R->getNameStr() << "\n"; dbgs() << " -> "); ValidatorResult Result = Validator.visit(Expr); - DEBUG( - if (Result.isValid()) - dbgs() << "VALID\n"; - dbgs() << "\n"; - ); + DEBUG(if (Result.isValid()) dbgs() << "VALID\n"; dbgs() << "\n";); return Result.isValid(); } @@ -477,5 +469,3 @@ getParamsInAffineExpr(const Region *R, const SCEV *Expr, ScalarEvolution &SE, return Result.getParameters(); } } - - |