[all-commits] [llvm/llvm-project] 92e0fb: [DebugInfo][LoopUnroll] Preserve DebugLocs on opti...

Stephen Tozer via All-commits all-commits at lists.llvm.org
Fri Nov 8 08:52:52 PST 2024


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

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUnroll.cpp
    A llvm/test/Transforms/LoopUnroll/preserve-branch-debuglocs.ll

  Log Message:
  -----------
  [DebugInfo][LoopUnroll] Preserve DebugLocs on optimized cond branches (#114225)

This patch fixes a simple error where as part of loop unrolling we
optimize conditional loop-exiting branches into unconditional branches
when we know that they will or won't exit the loop, but does not
propagate the source location of the original branch to the new one.

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