[all-commits] [llvm/llvm-project] e3d114: [DebugInfo][Reassociate] Propagate source loc when...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Tue Apr 8 09:46:19 PDT 2025


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

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/Reassociate.h
    M llvm/lib/Transforms/Scalar/Reassociate.cpp
    A llvm/test/Transforms/Reassociate/debugloc-factoring-neg.ll

  Log Message:
  -----------
  [DebugInfo][Reassociate] Propagate source loc when negating mul factor (#134679)

As part of RemoveFactorFromExpression, we attempt to remove a factor
from a mul/fmul expression; this may involve generating new
instructions, e.g. to negate the result if the factor was negative in
the original expression. When this happens, the new instructions should
have a DebugLoc set from the instruction that the factored expression is
being used to compute.

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