[PATCH] D46129: [SelectionDAG] Improve selection of DBG_VALUE using a PHI node result

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 09:30:21 PDT 2018


aprantl added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/InstrEmitter.cpp:724
+  } else if (SD->getKind() == SDDbgValue::VREG) {
+    MIB.addReg(SD->getVReg(), RegState::Debug);
   } else if (SD->getKind() == SDDbgValue::CONST) {
----------------
Just to be sure: this does *not* allocate a new vreg, right?


================
Comment at: test/DebugInfo/COFF/pieces.ll:46
+; ASM: [[oy_ox_start:\.Ltmp[0-9]+]]:
 ; ASM:        #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] $edi
+; ASM:        #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] $esi
----------------
I'm having a hard time interpreting the assembler comment. Does this mean that the range of the DBG_VALUE get's immediately terminated by the assignment to edi, or does that mean "starting with the assignment"?


Repository:
  rL LLVM

https://reviews.llvm.org/D46129





More information about the llvm-commits mailing list