[PATCH] D99048: [RFC][DebugInfo] Do not use the DBG_VALUE to calculate debug info of spill location

Yifeng Dong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 18:36:18 PDT 2021


dongAxis1944 added inline comments.


================
Comment at: llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp:1313
       })) {
-    // Use normal VarLoc constructor for registers and immediates.
-    VarLoc VL(MI, LS);
-    // End all previous ranges of VL.Var.
-    OpenRanges.erase(VL);
+    if (!MI.isIndirectDebugValue()) {
+      // Use normal VarLoc constructor for registers and immediates.
----------------
@jmorse If the MI is indirect DBG_VALUE, does it mean the positions of variable is in the stack?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99048/new/

https://reviews.llvm.org/D99048



More information about the llvm-commits mailing list