[llvm] [RISCV][GISEL] Legalize G_VAARG through expansion. (PR #73065)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 27 17:23:02 PST 2023
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 331111277a3e80aedd1a6877524feadfbcb41a88 4078504dba15d0edd80fbad168b1718f1ae58f92 -- llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
index 542dba6b9f..c6f0ade764 100644
--- a/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
@@ -7892,8 +7892,7 @@ LegalizerHelper::LegalizeResult LegalizerHelper::lowerVAArg(MachineInstr &MI) {
Register AlignAmt =
MIRBuilder.buildConstant(PtrTyAsScalarTy, MA->value() - 1).getReg(0);
auto AddDst = MIRBuilder.buildPtrAdd(PtrTy, HeadOfList, AlignAmt);
- auto AndDst =
- MIRBuilder.buildMaskLowPtrBits(PtrTy, AddDst, Log2(*MA));
+ auto AndDst = MIRBuilder.buildMaskLowPtrBits(PtrTy, AddDst, Log2(*MA));
VAList = AndDst.getReg(0);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/73065
More information about the llvm-commits
mailing list