[llvm] [RISCV] Add an implementation of findRepresentativeClass to assign i32 to GPRRegClass for RV64. (PR #116165)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 22:01:04 PST 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 5a2888ddbd7a601c8ad6bf7b5f13bf77318e4a4d 4928effc2ef653e0bdc54bb79f8015c696e21436 --extensions h,cpp -- llvm/lib/Target/RISCV/RISCVISelLowering.cpp llvm/lib/Target/RISCV/RISCVISelLowering.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index f191b4e9cb..2e157c7ce1 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -22007,7 +22007,9 @@ RISCVTargetLowering::findRepresentativeClass(const TargetRegisterInfo *TRI,
switch (VT.SimpleTy) {
default:
return TargetLowering::findRepresentativeClass(TRI, VT);
- case MVT::i8: case MVT::i16: case MVT::i32:
+ case MVT::i8:
+ case MVT::i16:
+ case MVT::i32:
RRC = &RISCV::GPRRegClass;
break;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/116165
More information about the llvm-commits
mailing list