[llvm] [CodeGen] Introduce Static Data Splitter pass (PR #122183)
Snehasish Kumar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 10:52:29 PST 2025
================
@@ -1340,6 +1344,19 @@ unsigned MachineJumpTableInfo::createJumpTableIndex(
return JumpTables.size()-1;
}
+bool MachineJumpTableInfo::updateJumpTableEntryHotness(
+ size_t JTI, MachineFunctionDataHotness Hotness) {
+ assert(JTI < JumpTables.size() && "Invalid JTI!");
+ // Note record the largest hotness is important for mergable data (constant
+ // pools). Even if jump table instances are not merged, record the largest
+ // value seen fwiw.
----------------
snehasish wrote:
nit: drop 'fwiw`.
https://github.com/llvm/llvm-project/pull/122183
More information about the llvm-commits
mailing list