Skip to content

Commit

Permalink
Explicitly disable RelLookupTableConvertedPass
Browse files Browse the repository at this point in the history
Before the passmanager update, the function `populateModulePassManager`
was called instead of `buildPerModuleDefaultPipeline` to set the default
passes. But the former did not have `RelLookupTableConverterPass` turned on
by default.
  • Loading branch information
devajithvs authored and jenkins committed Feb 8, 2024
1 parent 1b5103e commit 1c6031a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Interpreter/BackendPasses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,19 @@ void BackendPasses::CreatePasses(int OptLevel, llvm::ModulePassManager& MPM,
P.equals("ModuleInlinerPass") || P.equals("InlinerPass") ||
P.equals("InlineAdvisorAnalysis") ||
P.equals("PartiallyInlineLibCallsPass") ||
P.equals("RelLookupTableConverterPass") ||
P.equals("InlineCostAnnotationPrinterPass") ||
P.equals("InlineSizeEstimatorAnalysisPrinterPass") ||
P.equals("InlineSizeEstimatorAnalysis"))
return false;

return true;
});
} else {
// Register a callback for disabling RelLookupTableConverterPass.
PIC.registerShouldRunOptionalPassCallback([](StringRef P, Any) {
return !P.equals("RelLookupTableConverterPass");
});
}

SI.registerCallbacks(PIC, &FAM);
Expand Down

0 comments on commit 1c6031a

Please sign in to comment.