[llvm] [WebAssembly] Port WebAssemblySetP2AlignOperandsPass (PR #209871)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 23:49:36 PDT 2026
================
@@ -94,3 +97,16 @@ bool WebAssemblySetP2AlignOperands::runOnMachineFunction(MachineFunction &MF) {
return Changed;
}
+
+bool WebAssemblySetP2AlignOperandsLegacy::runOnMachineFunction(
+ MachineFunction &MF) {
+ return setP2AlignOperands(MF);
+}
+
+PreservedAnalyses
+WebAssemblySetP2AlignOperandsPass::run(MachineFunction &MF,
+ MachineFunctionAnalysisManager &MFAM) {
+ return setP2AlignOperands(MF) ? getMachineFunctionPassPreservedAnalyses()
+ .preserveSet<CFGAnalyses>()
+ : PreservedAnalyses::all();
----------------
boomanaiden154 wrote:
Also taken care of by preserving CFGAnalyses in the NewPM.
https://github.com/llvm/llvm-project/pull/209871
More information about the llvm-commits
mailing list