================
@@ -113,32 +116,30 @@ void
RISCVPreLegalizerCombiner::getAnalysisUsage(AnalysisUsage &AU) const {
MachineFunctionPass::getAnalysisUsage(AU);
}
-RISCVPreLegalizerCombiner::RISCVPreLegalizerCombiner()
- : MachineFunctionPass(ID) {
- if (!RuleConfig.parseCommandLineOption())
- report_fatal_error("Invalid rule identifier");
-}
+RISCVPreLegalizerCombinerLegacy::RISCVPreLegalizerCombinerLegacy()
+ : MachineFunctionPass(ID) {}
-bool RISCVPreLegalizerCombiner::runOnMachineFunction(MachineFunction &MF) {
+static bool
+runVPreLegalizerCombiner(MachineFunction &MF, function_ref<bool()> ShouldSkip,
+ function_ref<GISelCSEInfo *()> GetCSEInfo,
+ function_ref<GISelValueTracking *()> GetVT,
+ function_ref<MachineDominatorTree *()> GetMDT) {
if (MF.getProperties().hasFailedISel())
return false;
- auto &TPC = getAnalysis<TargetPassConfig>();
+ RISCVPreLegalizerCombinerImplRuleConfig RuleConfig;
----------------
topperc wrote:
How expensive is this to build since its been moved from the pass constructor
to every invocation.
https://github.com/llvm/llvm-project/pull/235967
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits