From de1b318dad331cb07d55d232543bb61ae67ce210 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 1 Jun 2017 21:29:05 +0000 Subject: Add opt-bisect support to polly. This is useful for debugging miscompiles and extracting testcases for crashes. See http://llvm.org/docs/OptBisect.html . Differential Revision: https://reviews.llvm.org/D33752 llvm-svn: 304480 --- polly/lib/Transform/CodePreparation.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'polly/lib/Transform/CodePreparation.cpp') diff --git a/polly/lib/Transform/CodePreparation.cpp b/polly/lib/Transform/CodePreparation.cpp index 2f74395ea20..081244da810 100644 --- a/polly/lib/Transform/CodePreparation.cpp +++ b/polly/lib/Transform/CodePreparation.cpp @@ -72,12 +72,15 @@ void CodePreparation::getAnalysisUsage(AnalysisUsage &AU) const { } 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(); } -- cgit v1.2.3