[llvm] [AArch64][PAC] Reset `killed` operand flags in outlined functions (PR #221041)

Daniil Kovalev via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 28 05:16:47 PDT 2026


================
@@ -958,6 +958,7 @@ MachineFunction *MachineOutliner::createOutlinedFunction(
       MachineInstr &NewMI = TII.duplicate(MBB, MBB.end(), MI);
       NewMI.dropMemRefs(MF);
       NewMI.setDebugLoc(DL);
+      NewMI.clearKillInfo();
----------------
kovdan01 wrote:

Is it intended that we only do this for this particular instruction and not for any potentially bundled instructions (like in the logic for DebugLoc below)?

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


More information about the llvm-commits mailing list