[all-commits] [llvm/llvm-project] 1f224d: [DebugInfo][IndVarSimplify] Propagate source loc w...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Thu Apr 17 09:30:31 PDT 2025


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

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    A llvm/test/Transforms/IndVarSimplify/debugloc-rem-subst.ll

  Log Message:
  -----------
  [DebugInfo][IndVarSimplify] Propagate source loc when simplifying rem (#135399)

When IndVarSimplify simplifies a rem of the induction variable to a cmp
and select, only the select currently receives the rem's source
location; this patch propagates it to the cmp as well.

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