[polly] r184000 - scop detection: check flag before expensive call
Sebastian Pop
spop at codeaurora.org
Fri Jun 14 13:20:39 PDT 2013
Author: spop
Date: Fri Jun 14 15:20:39 2013
New Revision: 184000
URL: http://llvm.org/viewvc/llvm-project?rev=184000&view=rev
Log:
scop detection: check flag before expensive call
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=184000&r1=183999&r2=184000&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Fri Jun 14 15:20:39 2013
@@ -266,8 +266,8 @@ bool ScopDetection::isValidMemoryAccess(
AccessFunction = SE->getMinusSCEV(AccessFunction, BasePointer);
- if (!isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue) &&
- !AllowNonAffine)
+ if (!AllowNonAffine && !isAffineExpr(&Context.CurRegion, AccessFunction, *SE,
+ BaseValue))
INVALID(AffFunc, "Non affine access function: " << *AccessFunction);
// FIXME: Alias Analysis thinks IntToPtrInst aliases with alloca instructions
More information about the llvm-commits
mailing list