[llvm] [AArch64][SVE] Support copy of PPR2 register class in copyPhysReg (PR #216303)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 14 05:10:47 PDT 2026
================
@@ -5771,6 +5771,8 @@ void AArch64InstrInfo::copyPhysRegTuple(MachineBasicBlock &MBB,
const MachineInstrBuilder MIB = BuildMI(MBB, I, DL, get(Opcode));
AddSubReg(MIB, DestReg, Indices[SubReg], RegState::Define, TRI);
AddSubReg(MIB, SrcReg, Indices[SubReg], {}, TRI);
+ if (Opcode == AArch64::ORR_PPzPP)
----------------
david-arm wrote:
Why do we need to check the opcode here? I was just looking at the ZPR2RegClass case, also handled in copyPhysReg, and we don't seem to need opcode checking in that case. I assume there is a problem with `getKillRegState(KillSrc)`?
https://github.com/llvm/llvm-project/pull/216303
More information about the llvm-commits
mailing list