We don't need to insert a load of the dynamic shadow address unless there
are interesting memory accesses to profile.
Split out of D124703.
Paths
| Differential D124797
[memprof] Only insert dynamic shadow load when needed ClosedPublic Authored by tejohnson on May 2 2022, 12:41 PM.
Details Summary We don't need to insert a load of the dynamic shadow address unless there Split out of D124703.
Diff Detail
Event TimelineComment Actions lgtm
This revision is now accepted and ready to land.May 2 2022, 12:47 PM This revision was landed with ongoing or failed builds.May 2 2022, 1:36 PM Closed by commit rG084b65f7dc39: [memprof] Only insert dynamic shadow load when needed (authored by tejohnson). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 426512 llvm/lib/Transforms/Instrumentation/MemProfiler.cpp
llvm/test/Instrumentation/HeapProfiler/no-instrumentation.ll
|
Can we also add a check for the log line "MEMPROF done instrumenting:"? Otherwise this test won't fail if memprof instrumentation doesn't run.