[llvm] [DebugInfo][RegisterCoalescer] Drop DBG_VALUEs with unsupported register class (PR #143132)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 06:30:50 PDT 2025
================
@@ -728,12 +728,15 @@ class MachineRegisterInfo {
/// recomputeRegClass - Try to find a legal super-class of Reg's register
/// class that still satisfies the constraints from the instructions using
- /// Reg. Returns true if Reg was upgraded.
+ /// Reg.
+ /// If Reg was upgraded, returns true and a list of debug value instructions
+ /// that became illegal after upgrade.
///
/// This method can be used after constraints have been removed from a
/// virtual register, for example after removing instructions or splitting
/// the live range.
- LLVM_ABI bool recomputeRegClass(Register Reg);
+ LLVM_ABI std::pair<bool, SmallVector<MachineInstr *, 8>>
+ recomputeRegClass(Register Reg);
----------------
arsenm wrote:
This really shouldn't need to care about debug instructions at all
https://github.com/llvm/llvm-project/pull/143132
More information about the llvm-commits
mailing list