[compiler-rt] 4735104 - [MSAN] remove unused debugging statements (NFC)
Kevin Athey via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 20:24:40 PDT 2022
Author: Kevin Athey
Date: 2022-08-11T20:24:34-07:00
New Revision: 4735104f09c5e7bcf1aff261ea0f3196941ce404
URL: https://github.com/llvm/llvm-project/commit/4735104f09c5e7bcf1aff261ea0f3196941ce404
DIFF: https://github.com/llvm/llvm-project/commit/4735104f09c5e7bcf1aff261ea0f3196941ce404.diff
LOG: [MSAN] remove unused debugging statements (NFC)
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D131748
Added:
Modified:
compiler-rt/lib/msan/msan.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan.cpp b/compiler-rt/lib/msan/msan.cpp
index 9a777e243cd8f..3bc48c06646a4 100644
--- a/compiler-rt/lib/msan/msan.cpp
+++ b/compiler-rt/lib/msan/msan.cpp
@@ -311,7 +311,6 @@ static inline void SetAllocaOrigin(void *a, uptr size, char *descr, uptr pc) {
static const u32 first_timer =
dash + (dash << 8) + (dash << 16) + (dash << 24);
u32 *id_ptr = (u32 *)descr;
- bool print = false; // internal_strstr(descr + 4, "AllocaTOTest") != 0;
u32 id = *id_ptr;
if (id == first_timer) {
u32 idx = atomic_fetch_add(&NumStackOriginDescrs, 1, memory_order_relaxed);
@@ -320,11 +319,7 @@ static inline void SetAllocaOrigin(void *a, uptr size, char *descr, uptr pc) {
StackOriginPC[idx] = pc;
id = Origin::CreateStackOrigin(idx).raw_id();
*id_ptr = id;
- if (print)
- Printf("First time: idx=%d id=%d %s 0x%zx \n", idx, id, descr + 4, pc);
}
- if (print)
- Printf("__msan_set_alloca_origin: descr=%s id=%x\n", descr + 4, id);
__msan_set_origin(a, size, id);
}
More information about the llvm-commits
mailing list