[all-commits] [llvm/llvm-project] 93c194: [Assignment Tracking] Ignore zero-sized fragments

Orlando Cazalet-Hyams via All-commits all-commits at lists.llvm.org
Wed Apr 5 01:31:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93c194fc9f40636d99b2d66a22abb1442c720451
      https://github.com/llvm/llvm-project/commit/93c194fc9f40636d99b2d66a22abb1442c720451
  Author: OCHyams <orlando.hyams at sony.com>
  Date:   2023-04-05 (Wed, 05 Apr 2023)

  Changed paths:
    M llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
    A llvm/test/DebugInfo/assignment-tracking/X86/frag-size-zero.ll

  Log Message:
  -----------
  [Assignment Tracking] Ignore zero-sized fragments

Such dbg.assigns will occur if you write zero-sized memcpys (see
https://reviews.llvm.org/D146987#4240016).

Handle this in AssignmentTrackingAnalysis (back end) rather than
AssignmentTrackingPass (declare-to-assign) in case it is possible to reproduce
this as a result of optimisations.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D147435




More information about the All-commits mailing list