[all-commits] [llvm/llvm-project] d686e5: [DebugInfo][InstCombine] When replacing bswap idio...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Nov 14 02:06:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d686e5cdafab7c6d8fb9d27ec428cf3b9d145c56
      https://github.com/llvm/llvm-project/commit/d686e5cdafab7c6d8fb9d27ec428cf3b9d145c56
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2024-11-14 (Thu, 14 Nov 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    A llvm/test/Transforms/InstCombine/debugloc-bswap.ll

  Log Message:
  -----------
  [DebugInfo][InstCombine] When replacing bswap idiom, add DebugLoc to new insts (#114231)

Currently when InstCombineAndOrXor recognizes a bswap idiom and replaces
it with an intrinsic and other instructions, only the last instruction
gets the DebugLoc of the replaced instruction set to it. This patch
applies the DebugLoc to all the generated instructions, to maintain some
degree of attribution.



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