[all-commits] [llvm/llvm-project] 5039bf: [DebugInfo][Inline] Propagate source locs when sim...
Stephen Tozer via All-commits
all-commits at lists.llvm.org
Wed Apr 9 08:52:26 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5039bf4e26f07f9082e42374a342b3f52236e3fc
https://github.com/llvm/llvm-project/commit/5039bf4e26f07f9082e42374a342b3f52236e3fc
Author: Stephen Tozer <stephen.tozer at sony.com>
Date: 2025-04-09 (Wed, 09 Apr 2025)
Changed paths:
M llvm/lib/Transforms/Utils/CloneFunction.cpp
A llvm/test/Transforms/Inline/X86/inline-simplified-branch-dbg-loc.ll
Log Message:
-----------
[DebugInfo][Inline] Propagate source locs when simplifying cond branches (#134827)
During inlining, we may opportunistically simplify conditional branches
(incl. switches) to unconditional branches if, after inlining, their
destination is fixed. While we do this, we should propagate any
DILocation attached to the original branch to the simplified branch,
which this patch enables.
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