From 0b2648bac1c4c99aeffac5529aa1abb932eb4411 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 2 Feb 2023 09:58:08 -0800 Subject: [PATCH] [RISCV] Add CoveredBySubRegs to the X*_PD register class. Not completely sure what effect this has, but it's certainly true. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D143103 --- llvm/lib/Target/RISCV/RISCVRegisterInfo.td | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td index adedfe5..301f2ad 100644 --- a/llvm/lib/Target/RISCV/RISCVRegisterInfo.td +++ b/llvm/lib/Target/RISCV/RISCVRegisterInfo.td @@ -547,6 +547,7 @@ let RegAltNameIndices = [ABIRegAltName] in { [Reg, RegP1], Reg.AltNames> { let SubRegIndices = [sub_32, sub_32_hi]; + let CoveredBySubRegs = 1; } } } -- 2.7.4