[all-commits] [llvm/llvm-project] 19ee7f: [AggrInstCombine][DebugInfo] Propagate DILocation ...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Tue Apr 8 10:54:56 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19ee7ffdacd54267aa18793b31d23c9c4fb94ee6
      https://github.com/llvm/llvm-project/commit/19ee7ffdacd54267aa18793b31d23c9c4fb94ee6
  Author: Stephen Tozer <stephen.tozer at sony.com>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
    A llvm/test/Transforms/AggressiveInstCombine/dbgloc-memchr.ll

  Log Message:
  -----------
  [AggrInstCombine][DebugInfo] Propagate DILocation for inlined memchr (#134808)

When AggressiveInstCombine replaces a memchr with a switch instruction,
it currently drops the DILocation for that memchr. This patch changes
this, propagating the memchr DILocation to all the generated
instructions that replace it.

Found using https://github.com/llvm/llvm-project/pull/107279.



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