[llvm] [CodeGen] Introduce Static Data Splitter pass (PR #122183)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 17:15:20 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff cd66c9b6a04689659348c0a3ff4c1205b1133fe9 1bacc51a5ae03ca9bda60dda4a63de9944d62950 --extensions h,cpp -- llvm/lib/CodeGen/StaticDataSplitter.cpp llvm/include/llvm/CodeGen/MachineBasicBlock.h llvm/include/llvm/CodeGen/MachineFunction.h llvm/include/llvm/CodeGen/MachineJumpTableInfo.h llvm/include/llvm/CodeGen/Passes.h llvm/include/llvm/InitializePasses.h llvm/lib/CodeGen/CodeGen.cpp llvm/lib/CodeGen/MachineBasicBlock.cpp llvm/lib/CodeGen/MachineFunction.cpp llvm/lib/CodeGen/TargetPassConfig.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index 117bd988a4..c9c4f0fe15 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -1347,9 +1347,9 @@ unsigned MachineJumpTableInfo::createJumpTableIndex(
 void MachineJumpTableInfo::updateJumpTableHotness(size_t JTI,
                                                   DataHotness Hotness) {
   assert(JTI < JumpTables.size() && "Invalid JTI!");
-  // Note: recording the largest hotness is important for mergable data (constant
-  // pools). Even if jump table instances are not merged, record the largest
-  // value seen fwiw.
+  // Note: recording the largest hotness is important for mergable data
+  // (constant pools). Even if jump table instances are not merged, record the
+  // largest value seen fwiw.
   JumpTables[JTI].Hotness = std::max(JumpTables[JTI].Hotness, Hotness);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/122183


More information about the llvm-commits mailing list