Skip to content

Commit 8705fdc

Browse files
committed
Sort registerPipelineParsingCallback
1 parent 06b025d commit 8705fdc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

polly/lib/Support/RegisterPasses.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,6 @@ parseTopLevelPipeline(llvm::ModulePassManager &MPM,
623623
/// handle LICMed code to make it useful.
624624
void registerPollyPasses(PassBuilder &PB) {
625625
PassInstrumentationCallbacks *PIC = PB.getPassInstrumentationCallbacks();
626-
PB.registerPipelineParsingCallback(
627-
[PIC](StringRef Name, CGSCCPassManager &CGPM,
628-
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
629-
ExitOnError Err("Unable to parse Polly call graph pass: ");
630-
return Err(parseCGPipeline(Name, CGPM, PIC, Pipeline));
631-
});
632626
PB.registerAnalysisRegistrationCallback([PIC](FunctionAnalysisManager &FAM) {
633627
registerFunctionAnalyses(FAM, PIC);
634628
});
@@ -638,6 +632,12 @@ void registerPollyPasses(PassBuilder &PB) {
638632
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
639633
return parseScopPipeline(Name, FPM, PIC, Pipeline);
640634
});
635+
PB.registerPipelineParsingCallback(
636+
[PIC](StringRef Name, CGSCCPassManager &CGPM,
637+
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {
638+
ExitOnError Err("Unable to parse Polly call graph pass: ");
639+
return Err(parseCGPipeline(Name, CGPM, PIC, Pipeline));
640+
});
641641
PB.registerParseTopLevelPipelineCallback(
642642
[PIC](llvm::ModulePassManager &MPM,
643643
ArrayRef<PassBuilder::PipelineElement> Pipeline) -> bool {

0 commit comments

Comments
 (0)