Skip to content

Commit 28c03b7

Browse files
committed
Merge branch 'users/meinersbur/polly_NPM-ScopInliner' into users/meinersbur/polly_PhaseManager
2 parents 665c1bf + 8705fdc commit 28c03b7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

polly/lib/Support/RegisterPasses.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -779,15 +779,15 @@ void registerPollyPasses(PassBuilder &PB) {
779779
return Err(parseModulePipeline(Name, MPM, PIC, Pipeline));
780780
});
781781
PB.registerPipelineParsingCallback(
782-
[PIC](StringRef Name, CGSCCPassManager &CGPM,
782+
[PIC](StringRef Name, FunctionPassManager &FPM,
783783
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
784-
ExitOnError Err("Unable to parse Polly call graph pass: ");
785-
return Err(parseCGPipeline(Name, CGPM, PIC, Pipeline));
784+
return parseScopPipeline(Name, FPM, PIC, Pipeline);
786785
});
787786
PB.registerPipelineParsingCallback(
788-
[PIC](StringRef Name, FunctionPassManager &FPM,
787+
[PIC](StringRef Name, CGSCCPassManager &CGPM,
789788
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
790-
return parseScopPipeline(Name, FPM, PIC, Pipeline);
789+
ExitOnError Err("Unable to parse Polly call graph pass: ");
790+
return Err(parseCGPipeline(Name, CGPM, PIC, Pipeline));
791791
});
792792
PB.registerParseTopLevelPipelineCallback(
793793
[PIC](llvm::ModulePassManager &MPM,

polly/test/ScopInliner/ignore-declares.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadNPMPolly -polly-detect-full-functions '-passes=cgscc(polly-inline),function(print<polly-function-scops>)' -disable-output < %s
1+
; RUN: opt %loadNPMPolly -polly-detect-full-functions '-passes=cgscc(polly-inline),polly-custom<print-scops>' -disable-output < %s
22

33
; Check that we do not crash if there are declares. We should skip function
44
; declarations and not try to query for domtree.

polly/test/ScopInliner/invariant-load-func.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %loadNPMPolly -polly-detect-full-functions -polly-invariant-load-hoisting '-passes=cgscc(polly-inline),function(print<polly-function-scops>)' -disable-output < %s 2>&1 | FileCheck %s
1+
; RUN: opt %loadNPMPolly -polly-detect-full-functions -polly-invariant-load-hoisting '-passes=cgscc(polly-inline),polly-custom<print-scops>' -disable-output < %s 2>&1 | FileCheck %s
22

33
; Check that we inline a function that requires invariant load hoisting
44
; correctly.

0 commit comments

Comments
 (0)