[llvm] [ISelDAG] Salvage debug info at isel by referring to frame indices. (PR #109126)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 08:43:53 PDT 2024


================
@@ -11237,6 +11237,12 @@ void SelectionDAG::salvageDebugInfo(SDNode &N) {
   if (!N.getHasDebugValue())
     return;
 
+  auto handle = [](SDNode *Node, unsigned ResNo) {
----------------
OCHyams wrote:

I think we could improve this name - `GetLocationOperand` or something like that?

nit: lambda naming tends to follow normal variable naming rules (capitalized).

https://github.com/llvm/llvm-project/pull/109126


More information about the llvm-commits mailing list