diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index c8addb97a592c..31143eae7526b 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -166,8 +166,9 @@ static void removeLifetimeMarkers(Region *R) { } } -static bool CodeGen(Scop &S, IslAstInfo &AI, LoopInfo &LI, DominatorTree &DT, - ScalarEvolution &SE, RegionInfo &RI) { +static bool generateCode(Scop &S, IslAstInfo &AI, LoopInfo &LI, + DominatorTree &DT, ScalarEvolution &SE, + RegionInfo &RI) { // Check whether IslAstInfo uses the same isl_ctx. Since -polly-codegen // reports itself to preserve DependenceInfo and IslAstInfo, we might get // those analysis that were computed by a different ScopInfo for a different @@ -333,7 +334,7 @@ class CodeGeneration : public ScopPass { SE = &getAnalysis().getSE(); DL = &S.getFunction().getParent()->getDataLayout(); RI = &getAnalysis().getRegionInfo(); - return CodeGen(S, *AI, *LI, *DT, *SE, *RI); + return generateCode(S, *AI, *LI, *DT, *SE, *RI); } /// Register all analyses and transformation required. @@ -361,7 +362,7 @@ PreservedAnalyses CodeGenerationPass::run(Scop &S, ScopAnalysisManager &SAM, ScopStandardAnalysisResults &AR, SPMUpdater &U) { auto &AI = SAM.getResult(S, AR); - if (CodeGen(S, AI, AR.LI, AR.DT, AR.SE, AR.RI)) { + if (generateCode(S, AI, AR.LI, AR.DT, AR.SE, AR.RI)) { U.invalidateScop(S); return PreservedAnalyses::none(); }