[llvm] [WebAssembly] Port WebAssemblyArgumentMovePass (PR #209368)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 23:50:57 PDT 2026
================
@@ -92,3 +96,15 @@ bool WebAssemblyArgumentMove::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+
+bool WebAssemblyArgumentMoveLegacy::runOnMachineFunction(MachineFunction &MF) {
+ return argumentMove(MF);
+}
+
+PreservedAnalyses
+WebAssemblyArgumentMovePass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM) {
+ return argumentMove(MF) ? getMachineFunctionPassPreservedAnalyses()
+ .preserveSet<CFGAnalyses>()
+ : PreservedAnalyses::all();
----------------
aheejin wrote:
I see. I made several more similar comments in your PRs; sorry for the noise. Feel free to ignore them.
https://github.com/llvm/llvm-project/pull/209368
More information about the llvm-commits
mailing list