[llvm] [RISCV] Use the VR allocation order for VM. (PR #83664)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 1 23:57:43 PST 2024
https://github.com/topperc created https://github.com/llvm/llvm-project/pull/83664
None
>From e3ca8fbef0249b7fd27dc85762fb6e8ad6ef8dd3 Mon Sep 17 00:00:00 2001
From: Craig Topper <craig.topper at sifive.com>
Date: Fri, 1 Mar 2024 23:56:55 -0800
Subject: [PATCH] [RISCV] Use the VR allocation order for VM.
---
llvm/lib/Target/RISCV/RISCVRegisterInfo.td | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td
index 53838d6e540123..225b57554c1dc0 100644
--- a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+++ b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td
@@ -585,9 +585,7 @@ def GPRPair : RegisterClass<"RISCV", [XLenPairFVT], 64, (add
)>;
// The register class is added for inline assembly for vector mask types.
-def VM : VReg<VMaskVTs,
- (add (sequence "V%u", 8, 31),
- (sequence "V%u", 0, 7)), 1>;
+def VM : VReg<VMaskVTs, (add VR), 1>;
foreach m = LMULList in {
foreach nf = NFList<m>.L in {
More information about the llvm-commits
mailing list