[all-commits] [llvm/llvm-project] de7923: [X86] Complete preservation of !pcsections in X86I...

Marco Elver via All-commits all-commits at lists.llvm.org
Wed Jul 12 06:09:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de79233b2e14a79d6526f4e74f35f88c8fa97296
      https://github.com/llvm/llvm-project/commit/de79233b2e14a79d6526f4e74f35f88c8fa97296
  Author: Marco Elver <elver at google.com>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineInstrBuilder.h
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/pcsections-atomics.ll

  Log Message:
  -----------
  [X86] Complete preservation of !pcsections in X86ISelLowering

https://reviews.llvm.org/D130883 introduced MIMetadata to simplify
metadata propagation (DebugLoc and PCSections).

However, we're currently still permitting implicit conversion of
DebugLoc to MIMetadata, to allow for a gradual transition and let the
old code work as-is.

This manifests in lost !pcsections metadata for X86-specific lowerings.
For example, 128-bit atomics.

Fix the situation for X86ISelLowering by converting all BuildMI() calls
to use an explicitly constructed MIMetadata.

Reviewed By: dvyukov

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




More information about the All-commits mailing list