[all-commits] [llvm/llvm-project] 117e95: [LiveRangeEdit] Remove any MemoryOperand on MI whe...

Jonas Paulsson via All-commits all-commits at lists.llvm.org
Tue Nov 5 09:08:49 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 117e952a53ea97680293b7d8d6950090284ef198
      https://github.com/llvm/llvm-project/commit/117e952a53ea97680293b7d8d6950090284ef198
  Author: Jonas Paulsson <paulson1 at linux.ibm.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M llvm/lib/CodeGen/LiveRangeEdit.cpp
    A llvm/test/CodeGen/SystemZ/liverangeedit-kill-memop.mir

  Log Message:
  -----------
  [LiveRangeEdit] Remove any MemoryOperand on MI when converting it to KILL. (#114407)

When LiveRangeEdit::eliminateDeadDef() converts an MI to a KILL instruction,
it should also call dropMemRefs() in order to erase any MachineMemOperand
present.

This was discovered in testing as the MachineVerifier does not accept an MMO
without the corresponding MI mayLoad/mayStore flag, which the KILL opcode
lacks.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list