[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:13:58 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:

Oh, we still call `AddSubReg(MIB, SrcReg, Indices[SubReg], getKillRegState(KillSrc), TRI);` anyway even if the opcode is `AArch64::ORR_PPzPP`. So looks like we call it twice?

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


More information about the llvm-commits mailing list