[llvm] [CodeGen] Use first EHLabel as a stop gate for live range shrinking (PR #114195)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 05:05:34 PDT 2024
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 f3584222682bd64daa89cbfe41c071c6bfc2347a 470103e2dd9a3780e4296d75c6a3f98d59f43393 --extensions cpp -- llvm/lib/CodeGen/LiveRangeShrink.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/LiveRangeShrink.cpp b/llvm/lib/CodeGen/LiveRangeShrink.cpp
index 1f7c0fc636..f662eb80c4 100644
--- a/llvm/lib/CodeGen/LiveRangeShrink.cpp
+++ b/llvm/lib/CodeGen/LiveRangeShrink.cpp
@@ -138,9 +138,9 @@ bool LiveRangeShrink::runOnMachineFunction(MachineFunction &MF) {
if (MI.mayStore())
SawStore = true;
if (IsEHPad && !SawEHLabel && MI.isEHLabel()) {
- // If MI is the first EHLabel of an EHPad, it should become a
- // barrier for code motion. IOM is rebuild from the next instruction
- // to prevent later instructions from being moved before this MI.
+ // If MI is the first EHLabel of an EHPad, it should become a
+ // barrier for code motion. IOM is rebuild from the next instruction
+ // to prevent later instructions from being moved before this MI.
SawEHLabel = true;
BuildInstOrderMap(Next, IOM);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/114195
More information about the llvm-commits
mailing list