Skip to content

Commit f8262ca

Browse files
authored
[MemProf][NFC] remove unneeded sized memory access callback (#79260)
As discussed in #79244, the sized memory access callback is leftover stuff carried over from Asan, can removed from the instrumentation.
1 parent a739589 commit f8262ca

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ class MemProfiler {
214214

215215
// These arrays is indexed by AccessIsWrite
216216
FunctionCallee MemProfMemoryAccessCallback[2];
217-
FunctionCallee MemProfMemoryAccessCallbackSized[2];
218217

219218
FunctionCallee MemProfMemmove, MemProfMemcpy, MemProfMemset;
220219
Value *DynamicShadowOffset = nullptr;
@@ -504,12 +503,7 @@ void MemProfiler::initializeCallbacks(Module &M) {
504503
for (size_t AccessIsWrite = 0; AccessIsWrite <= 1; AccessIsWrite++) {
505504
const std::string TypeStr = AccessIsWrite ? "store" : "load";
506505

507-
SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy};
508506
SmallVector<Type *, 2> Args1{1, IntptrTy};
509-
MemProfMemoryAccessCallbackSized[AccessIsWrite] =
510-
M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + "N",
511-
FunctionType::get(IRB.getVoidTy(), Args2, false));
512-
513507
MemProfMemoryAccessCallback[AccessIsWrite] =
514508
M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr,
515509
FunctionType::get(IRB.getVoidTy(), Args1, false));

0 commit comments

Comments
 (0)