[llvm] Reapply "[Aarch64] [ISel] Don't save vaargs registers if vaargs are unused" (PR #131459)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 19 12:30:02 PDT 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 b37be0e734ecc29fe55eb9d7a8119f82afc9da54 d0b1675dd0d0c1d32db3fa1c0c714dd3a8e5a745 --extensions cpp -- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
index 888f0f6716..3cd47a8b2e 100644
--- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -8241,8 +8241,8 @@ SDValue AArch64TargetLowering::LowerFormalArguments(
}
// varargs
- // Note that IsWin64 part is required to prevent odd miscompilations on arm64 windows
- // platforms. For more info refer to GH#126780 PR comments.
+ // Note that IsWin64 part is required to prevent odd miscompilations on arm64
+ // windows platforms. For more info refer to GH#126780 PR comments.
if (isVarArg &&
(DAG.getMachineFunction().getFrameInfo().hasVAStart() || IsWin64)) {
if (!Subtarget->isTargetDarwin() || IsWin64) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/131459
More information about the llvm-commits
mailing list