================
@@ -121,3 +124,21 @@ bool
WebAssemblyOptimizeLiveIntervals::runOnMachineFunction(
return true;
}
+
+bool WebAssemblyOptimizeLiveIntervalsLegacy::runOnMachineFunction(
+ MachineFunction &MF) {
+ return optimizeLiveIntervals(
+ MF, getAnalysis<LiveIntervalsWrapperPass>().getLIS());
+}
+
+PreservedAnalyses WebAssemblyOptimizeLiveIntervalsPass::run(
+ MachineFunction &MF, MachineFunctionAnalysisManager &MFAM) {
+ bool Changed =
+ optimizeLiveIntervals(MF, MFAM.getResult<LiveIntervalsAnalysis>(MF));
+ if (!Changed)
+ return PreservedAnalyses::all();
+ return getMachineFunctionPassPreservedAnalyses()
+ .preserveSet<CFGAnalyses>()
+ .preserve<LiveIntervalsAnalysis>()
+ .preserve<SlotIndexesAnalysis>();
----------------
aheejin wrote:
I also made a few similar questions for your already-landed PRs; PTAL.
https://github.com/llvm/llvm-project/pull/209958
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits