This is an archive of the discontinued LLVM Phabricator instance.

[esan|wset] Optionally assume intra-cache-line accesses
ClosedPublic

Authored by bruening on Jun 3 2016, 11:42 AM.

Details

Summary

Adds an option -esan-assume-intra-cache-line which causes esan to assume
that a single memory access touches just one cache line, even if it is not
aligned, for better performance at a potential accuracy cost. Experiments
show that the performance difference can be 2x or more, and accuracy loss
is typically negligible, so we turn this on by default. This currently
applies just to the working set tool.

Diff Detail

Repository
rL LLVM

Event Timeline

bruening updated this revision to Diff 59590.Jun 3 2016, 11:42 AM
bruening retitled this revision from to [esan|wset] Optionally assume intra-cache-line accesses.
bruening updated this object.
bruening added a reviewer: aizatsky.
bruening added subscribers: llvm-commits, eugenis, kcc and 2 others.
aizatsky accepted this revision.Jun 3 2016, 12:00 PM
aizatsky edited edge metadata.
aizatsky added inline comments.
lib/Transforms/Instrumentation/EfficiencySanitizer.cpp
712 ↗(On Diff #59590)

Do you want a statistics for how many were assumed?

This revision is now accepted and ready to land.Jun 3 2016, 12:00 PM
bruening updated this revision to Diff 59619.Jun 3 2016, 2:05 PM
bruening edited edge metadata.

Add stat on the number of assumptions.

This revision was automatically updated to reflect the committed changes.