[llvm] [WIP][PowerPC] Add phony subregisters to cover the high half of the VSX registers. (PR #94628)

Kai Luo via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 6 09:40:32 PDT 2024


================
@@ -435,7 +435,91 @@ BitVector PPCRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
     }
   }
 
-  assert(checkAllSuperRegsMarked(Reserved));
+  // Mark phony regsiters for the VSR high bits as reserved so that they are
+  // not used.
+  Reserved.set(PPC::FH0);
----------------
bzEq wrote:

Maybe we don't need to reserve these registers since their parent registers are not reserved. If we don't want RA to allocate these registers, better create new register classes for them and these register classes are not allocatable.

https://github.com/llvm/llvm-project/pull/94628


More information about the llvm-commits mailing list