[all-commits] [llvm/llvm-project] 662799: [DebugInfo][InstrRef] Avoid duplicate instruction ...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Thu Feb 10 08:37:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 662799c8511d345da000fd35e5591ac93a0b88e5
      https://github.com/llvm/llvm-project/commit/662799c8511d345da000fd35e5591ac93a0b88e5
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86FixupLEAs.cpp
    M llvm/test/DebugInfo/MIR/InstrRef/x86-lea-fixup.mir

  Log Message:
  -----------
  [DebugInfo][InstrRef] Avoid duplicate instruction numbers in x86-lea-fixup

This new-ish LEA-fixup code path creates two substitutions for an
instruction number -- this is incorrect because each Value should be
replaced by a single replacement Value. Fix by deleting the duplicate
substitution. Add some test coverage for this path with debug-info
attached.

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




More information about the All-commits mailing list