diff options
| -rw-r--r-- | polly/lib/CodeGen/Cloog.cpp | 3 | ||||
| -rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 7 | ||||
| -rw-r--r-- | polly/lib/IndependentBlocks.cpp | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/Cloog.cpp b/polly/lib/CodeGen/Cloog.cpp index f3fe68c52b0..e4cd24bcb06 100644 --- a/polly/lib/CodeGen/Cloog.cpp +++ b/polly/lib/CodeGen/Cloog.cpp @@ -23,6 +23,7 @@ //===----------------------------------------------------------------------===// #include "polly/Cloog.h" +#ifdef CLOOG_FOUND #include "polly/LinkAllPasses.h" #include "polly/ScopInfo.h" @@ -333,3 +334,5 @@ INITIALIZE_PASS_END(CloogInfo, "polly-cloog", Pass *polly::createCloogInfoPass() { return new CloogInfo(); } + +#endif // CLOOG_FOUND diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 72a6c828ad6..9d39ec2ff0a 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -20,9 +20,10 @@ // //===----------------------------------------------------------------------===// -#define DEBUG_TYPE "polly-codegen" - #include "polly/Cloog.h" +#ifdef CLOOG_FOUND + +#define DEBUG_TYPE "polly-codegen" #include "polly/Dependences.h" #include "polly/LinkAllPasses.h" #include "polly/ScopInfo.h" @@ -937,3 +938,5 @@ INITIALIZE_PASS_END(CodeGeneration, "polly-codegen", Pass *polly::createCodeGenerationPass() { return new CodeGeneration(); } + +#endif // CLOOG_FOUND diff --git a/polly/lib/IndependentBlocks.cpp b/polly/lib/IndependentBlocks.cpp index 7d806521561..6f1893c1813 100644 --- a/polly/lib/IndependentBlocks.cpp +++ b/polly/lib/IndependentBlocks.cpp @@ -491,7 +491,9 @@ void IndependentBlocks::getAnalysisUsage(AnalysisUsage &AU) const { AU.addPreserved<ScalarEvolution>(); AU.addRequired<ScopDetection>(); AU.addPreserved<ScopDetection>(); +#ifdef CLOOG_FOUND AU.addPreserved<CloogInfo>(); +#endif } bool IndependentBlocks::runOnFunction(llvm::Function &F) { |

