[llvm-commits] [polly] r143653 - /polly/trunk/lib/Analysis/ScopDetection.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Thu Nov 3 14:03:14 PDT 2011
Author: grosser
Date: Thu Nov 3 16:03:14 2011
New Revision: 143653
URL: http://llvm.org/viewvc/llvm-project?rev=143653&view=rev
Log:
ScopDetection: Use SCEVValidator for conditions
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=143653&r1=143652&r2=143653&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Thu Nov 3 16:03:14 2011
@@ -396,8 +396,8 @@
const SCEV *ScevLHS = SE->getSCEV(ICmp->getOperand(0));
const SCEV *ScevRHS = SE->getSCEV(ICmp->getOperand(1));
- bool affineLHS = isValidAffineFunction(ScevLHS, RefRegion);
- bool affineRHS = isValidAffineFunction(ScevRHS, RefRegion);
+ bool affineLHS = SCEVValidator::isValid(&Context.CurRegion, ScevLHS, *SE);
+ bool affineRHS = SCEVValidator::isValid(&Context.CurRegion, ScevRHS, *SE);
if (!affineLHS || !affineRHS)
INVALID(AffFunc, "Non affine branch in BB: " + BB.getNameStr());
More information about the llvm-commits
mailing list