[llvm] [BOLT] fix print-mem-data not working (PR #156332)
Haibo Jiang via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 9 00:22:02 PDT 2025
================
@@ -390,7 +390,11 @@ void MCPlusBuilder::printAnnotations(const MCInst &Inst,
const int64_t Value = extractAnnotationValue(Imm);
const auto *Annotation = reinterpret_cast<const MCAnnotation *>(Value);
if (Index >= MCAnnotation::kGeneric) {
- OS << " # " << AnnotationNames[Index - MCAnnotation::kGeneric] << ": ";
+ std::string AnnotationName =
+ AnnotationNames[Index - MCAnnotation::kGeneric];
+ if (!PrintMemData && AnnotationName == "MemoryAccessProfile")
----------------
Jianghibo wrote:
Yeah, if `PrintMemData` is enabled by default, then using a profile that includes memory access infomation will result in excessive printing of memory access details.
https://github.com/llvm/llvm-project/pull/156332
More information about the llvm-commits
mailing list