[llvm] r361965 - [mips] Iterate over MSACtrlRegClass to reserve all MSA control registers. NFC
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Wed May 29 07:58:56 PDT 2019
Author: atanasyan
Date: Wed May 29 07:58:56 2019
New Revision: 361965
URL: http://llvm.org/viewvc/llvm-project?rev=361965&view=rev
Log:
[mips] Iterate over MSACtrlRegClass to reserve all MSA control registers. NFC
Modified:
llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp?rev=361965&r1=361964&r2=361965&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsRegisterInfo.cpp Wed May 29 07:58:56 2019
@@ -217,14 +217,8 @@ getReservedRegs(const MachineFunction &M
Reserved.set(Mips::DSPOutFlag);
// Reserve MSA control registers.
- Reserved.set(Mips::MSAIR);
- Reserved.set(Mips::MSACSR);
- Reserved.set(Mips::MSAAccess);
- Reserved.set(Mips::MSASave);
- Reserved.set(Mips::MSAModify);
- Reserved.set(Mips::MSARequest);
- Reserved.set(Mips::MSAMap);
- Reserved.set(Mips::MSAUnmap);
+ for (MCPhysReg Reg : Mips::MSACtrlRegClass)
+ Reserved.set(Reg);
// Reserve RA if in mips16 mode.
if (Subtarget.inMips16Mode()) {
More information about the llvm-commits
mailing list