[all-commits] [llvm/llvm-project] 6b87d8: [MachineSink] Some more preserving of debug locat...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Fri Nov 24 01:46:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6b87d84ff45d03c244e7511fba9359776ce27977
      https://github.com/llvm/llvm-project/commit/6b87d84ff45d03c244e7511fba9359776ce27977
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2023-11-24 (Fri, 24 Nov 2023)

  Changed paths:
    M llvm/lib/CodeGen/MachineSink.cpp
    M llvm/test/DebugInfo/AArch64/constant-dbgloc.ll

  Log Message:
  -----------
   [MachineSink] Some more preserving of debug location when rematerialising an instruction to replace a COPY (#73155)

Somewhat similar to ef9bcace834e63f25bbbc5e8e2b615f89d85fb2f
([MachineSink][AArch64] Preserve debug location when rematerialising
an instruction to replace a COPY (#72685))
reuse the debug location of the COPY, iff the rematerialised instruction
did not have a location.

Fixes a regression in `DebugInfo/AArch64/constant-dbgloc.ll` after
enabling sink-and-fold.




More information about the All-commits mailing list