Skip to content

Commit b1824f8

Browse files
committed
[MemProf][NFC] remove unneeded sized memory access callback
As discussed in #79244, the sized memory access callback is leftover stuff carried over from Asan, can removed from the instrumentation.
1 parent f7b61f8 commit b1824f8

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
@@ -215,7 +215,6 @@ class MemProfiler {
215215

216216
// These arrays is indexed by AccessIsWrite
217217
FunctionCallee MemProfMemoryAccessCallback[2];
218-
FunctionCallee MemProfMemoryAccessCallbackSized[2];
219218

220219
FunctionCallee MemProfMemmove, MemProfMemcpy, MemProfMemset;
221220
Value *DynamicShadowOffset = nullptr;
@@ -508,12 +507,7 @@ void MemProfiler::initializeCallbacks(Module &M) {
508507
for (size_t AccessIsWrite = 0; AccessIsWrite <= 1; AccessIsWrite++) {
509508
const std::string TypeStr = AccessIsWrite ? "store" : "load";
510509

511-
SmallVector<Type *, 3> Args2 = {IntptrTy, IntptrTy};
512510
SmallVector<Type *, 2> Args1{1, IntptrTy};
513-
MemProfMemoryAccessCallbackSized[AccessIsWrite] =
514-
M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr + "N",
515-
FunctionType::get(IRB.getVoidTy(), Args2, false));
516-
517511
MemProfMemoryAccessCallback[AccessIsWrite] =
518512
M.getOrInsertFunction(ClMemoryAccessCallbackPrefix + TypeStr,
519513
FunctionType::get(IRB.getVoidTy(), Args1, false));

0 commit comments

Comments
 (0)