This is an archive of the discontinued LLVM Phabricator instance.

[asan] Minimize code size by using __asan_set_shadow_* for large blocks
ClosedPublic

Authored by vitalybuka on Aug 19 2016, 2:07 AM.

Details

Summary

We can insert function call instead of multiple store operation.
Current default is blocks large than 64 bytes.
Changes are hidden behind -asan-experimental-poisoning flag.

PR27453

Diff Detail

Event Timeline

vitalybuka updated this revision to Diff 68663.Aug 19 2016, 2:07 AM
vitalybuka retitled this revision from to [asan] Minimize code size by using __asan_set_shadow_* for large blocks.
vitalybuka updated this object.
vitalybuka added a subscriber: llvm-commits.
eugenis edited edge metadata.Aug 19 2016, 12:17 PM

Please extend the test with different combinations of inline/non-inline shadow ranges.

lib/Transforms/Instrumentation/AddressSanitizer.cpp
2037

do you mean "break"?
Or even replace this with assert().

eugenis accepted this revision.Aug 19 2016, 12:28 PM
eugenis edited edge metadata.

LGTM

This revision is now accepted and ready to land.Aug 19 2016, 12:28 PM
This revision was automatically updated to reflect the committed changes.