[llvm] [RISCV][GISEL] Legalize and post-legalize lower G_INSERT_SUBVECTOR (PR #108859)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 10:24:54 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 64972834c193632cbc47e54c0f0c721636b077e6 e2b473d8263d4b7f31099d7e5d6eda8b6db60e93 --extensions cpp,h -- llvm/include/llvm/CodeGen/GlobalISel/GenericMachineInstrs.h llvm/lib/CodeGen/MachineVerifier.cpp llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp llvm/lib/Target/RISCV/GISel/RISCVPostLegalizerLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
index d03a0939ab..54aef303b9 100644
--- a/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+++ b/llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
@@ -583,9 +583,9 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
getActionDefinitionsBuilder(G_INSERT_SUBVECTOR)
.legalIf(all(typeIsLegalBoolVec(0, BoolVecTys, ST),
- typeIsLegalBoolVec(1, BoolVecTys, ST)))
+ typeIsLegalBoolVec(1, BoolVecTys, ST)))
.legalIf(all(typeIsLegalIntOrFPVec(0, IntOrFPVecTys, ST),
- typeIsLegalIntOrFPVec(1, IntOrFPVecTys, ST)));
+ typeIsLegalIntOrFPVec(1, IntOrFPVecTys, ST)));
getLegacyLegalizerInfo().computeTables();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/108859
More information about the llvm-commits
mailing list