aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
diff options
context:
space:
mode:
authorpaperchalice <liujunchang97@outlook.com>2024-07-12 15:45:01 +0800
committerGitHub <noreply@github.com>2024-07-12 15:45:01 +0800
commit099899961c1e89a1789f534579d35a74a2ef1dda (patch)
tree66911a69efb971bb09b86d6a3d9499aba774598c /llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
parent7a7d370742dff82caa6a713bc2b1e2c0c51a9f30 (diff)
downloadllvm-099899961c1e89a1789f534579d35a74a2ef1dda.zip
llvm-099899961c1e89a1789f534579d35a74a2ef1dda.tar.gz
llvm-099899961c1e89a1789f534579d35a74a2ef1dda.tar.bz2
[CodeGen][NewPM] Port `machine-block-freq` to new pass manager (#98317)
- Add `MachineBlockFrequencyAnalysis`. - Add `MachineBlockFrequencyPrinterPass`. - Use `MachineBlockFrequencyInfoWrapperPass` in legacy pass manager. - `LazyMachineBlockFrequencyInfo::print` is empty, drop it due to new pass manager migration.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
index 17e166c..658ee3b 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
@@ -51,7 +51,7 @@ class WebAssemblyRegStackify final : public MachineFunctionPass {
AU.setPreservesCFG();
AU.addRequired<MachineDominatorTreeWrapperPass>();
AU.addRequired<LiveIntervalsWrapperPass>();
- AU.addPreserved<MachineBlockFrequencyInfo>();
+ AU.addPreserved<MachineBlockFrequencyInfoWrapperPass>();
AU.addPreserved<SlotIndexesWrapperPass>();
AU.addPreserved<LiveIntervalsWrapperPass>();
AU.addPreservedID(LiveVariablesID);