[llvm] [RISCV][NFC] Add helpers for RVV register classes (PR #84144)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 21:19:38 PST 2024
================
@@ -112,11 +112,33 @@ struct RISCVRegisterInfo : public RISCVGenRegisterInfo {
bool doesRegClassHavePseudoInitUndef(
const TargetRegisterClass *RC) const override {
+ return isVRRegClass(RC);
+ }
+
+ bool isVRRegClass(const TargetRegisterClass *RC) const {
----------------
topperc wrote:
In RISCVRegisterInfo class is fine. Mainly suggested it because it would avoid the static_cast in onlyAllocateRVVReg.
https://github.com/llvm/llvm-project/pull/84144
More information about the llvm-commits
mailing list