Index: polly/trunk/lib/Analysis/ScopPass.cpp =================================================================== --- polly/trunk/lib/Analysis/ScopPass.cpp +++ polly/trunk/lib/Analysis/ScopPass.cpp @@ -22,6 +22,9 @@ bool ScopPass::runOnRegion(Region *R, RGPassManager &RGM) { S = nullptr; + if (skipRegion(*R)) + return false; + if ((S = getAnalysis().getScop())) return runOnScop(*S); Index: polly/trunk/lib/Transform/CodePreparation.cpp =================================================================== --- polly/trunk/lib/Transform/CodePreparation.cpp +++ polly/trunk/lib/Transform/CodePreparation.cpp @@ -72,12 +72,15 @@ } bool CodePreparation::runOnFunction(Function &F) { + if (skipFunction(F)) + return false; + LI = &getAnalysis().getLoopInfo(); SE = &getAnalysis().getSE(); splitEntryBlockForAlloca(&F.getEntryBlock(), this); - return false; + return true; } void CodePreparation::releaseMemory() { clear(); }