[all-commits] [llvm/llvm-project] 4060d3: [BranchFolding] Merge debug locs on common hoisted...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Tue May 20 03:12:06 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4060d3874623687cd3af73ad883efc7b1ab6fcd2
https://github.com/llvm/llvm-project/commit/4060d3874623687cd3af73ad883efc7b1ab6fcd2
Author: Orlando Cazalet-Hyams <orlando.hyams at sony.com>
Date: 2025-05-20 (Tue, 20 May 2025)
Changed paths:
M llvm/lib/CodeGen/BranchFolding.cpp
A llvm/test/DebugInfo/X86/branch-folder-dbg.mir
Log Message:
-----------
[BranchFolding] Merge debug locs on common hoisted code (#140063)
branch-folder hoists common instructions from TBB and FBB into their
pred. Without this patch it achieves this by splicing the instructions from TBB
and deleting the common ones in FBB. That moves the debug locations and debug
instructions from TBB into the pred without modification, which is not
ideal. The merged instructions should get merged debug locations for debugging
and PGO purposes, which is handled in this patch. Debug instructions also need
to be handled differently. That'll come in another patch. This issue was found
by @omern1.
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