[llvm] [AMDGPU] Move WWM register pre-allocation to during regalloc (PR #70618)

Carl Ritson via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 02:43:38 PDT 2023


================
@@ -101,7 +99,7 @@ bool SIPreAllocateWWMRegs::processDef(MachineOperand &MO) {
   LiveInterval &LI = LIS->getInterval(Reg);
 
   for (MCRegister PhysReg : RegClassInfo.getOrder(MRI->getRegClass(Reg))) {
-    if (!MRI->isPhysRegUsed(PhysReg) &&
+    if (!MRI->isPhysRegUsed(PhysReg, true) &&
----------------
perlfu wrote:

Fixed, thanks.

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


More information about the llvm-commits mailing list