[llvm] [AMDGPU] Do not erase KILLs that redefine a register in SIPostRABundler (PR #218349)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 02:17:01 PDT 2026


================
@@ -222,6 +222,12 @@ bool SIPostRABundler::run(MachineFunction &MF) {
 
           while (Next != E && Next->isKill()) {
             MachineInstr &Kill = *Next;
+
+            // KILL from an undef-source COPY keeps its def; must not erase it.
----------------
aobolensk wrote:

TargetInstrInfo::lowerCopy turns an undef-source COPY into a KILL

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


More information about the llvm-commits mailing list