[llvm] [UnwinderV3] Include padding in spliting calculations (PR #208458)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 06:34:05 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/Target/X86/X86WinEHUnwindV3.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp b/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
index 1baa88d56..162633e2f 100644
--- a/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
+++ b/llvm/lib/Target/X86/X86WinEHUnwindV3.cpp
@@ -58,8 +58,9 @@ static constexpr unsigned EpilogDistanceThreshold = 32767;
/// ApproxBytesPerInstr each and alignment padding is added.
static cl::opt<unsigned> ApproxBytesPerInstr(
"x86-wineh-unwindv3-instr-avg-size", cl::Hidden,
- cl::desc("Average size of an instruction. This value is used in determining "
- "split points for chained unwinder info"),
+ cl::desc(
+ "Average size of an instruction. This value is used in determining "
+ "split points for chained unwinder info"),
cl::init(7));
/// After reporting a recoverable error for `MF`, erase all SEH pseudo-
@@ -201,8 +202,8 @@ FuncletInfo X86WinEHUnwindV3::analyzeFunclet(MachineFunction &MF,
InEpilog = true;
CurrentEpilogOpCount = 0;
LLVM_DEBUG(dbgs() << " epilog " << Info.Epilogs.size()
- << " begins at approx byte position "
- << ApproxBytePos << "\n");
+ << " begins at approx byte position " << ApproxBytePos
+ << "\n");
Info.Epilogs.push_back({&MI, ApproxBytePos});
break;
case X86::SEH_EndEpilogue:
``````````
</details>
https://github.com/llvm/llvm-project/pull/208458
More information about the llvm-commits
mailing list