[llvm] 7212b4a - [RemoveDIs] Remove unused debug-printing facility for DPMarkers

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 7 08:28:19 PST 2024


Author: Jeremy Morse
Date: 2024-02-07T16:27:43Z
New Revision: 7212b4ae09abe5ba0f9a6ea608ebb6dbfad48b73

URL: https://github.com/llvm/llvm-project/commit/7212b4ae09abe5ba0f9a6ea608ebb6dbfad48b73
DIFF: https://github.com/llvm/llvm-project/commit/7212b4ae09abe5ba0f9a6ea608ebb6dbfad48b73.diff

LOG: [RemoveDIs] Remove unused debug-printing facility for DPMarkers

We originally thought that printing the DPMarker pointer after each
instruction was going to be useful, but it turns out it only serves to
generate spurious test output differences now. As it stands, the cannonical
way to debug RemoveDIs metadata is "dumpDbgValues".

Added: 
    

Modified: 
    llvm/lib/IR/AsmWriter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 7b56c471a745e..c6ef332403fd6 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -4092,12 +4092,6 @@ void AssemblyWriter::printInfoComment(const Value &V) {
 
   if (AnnotationWriter) {
     AnnotationWriter->printInfoComment(V, Out);
-  } else if (const Instruction *I = dyn_cast<Instruction>(&V)) {
-    if (I->DbgMarker) {
-      // In the new, experimental DPValue representation of debug-info, print
-      // out which instructions have DPMarkers and where they are.
-      Out << "; dbgmarker @ " << I->DbgMarker;
-    }
   }
 }
 


        


More information about the llvm-commits mailing list