[PING][PATCH] Asan optimization for aligned accesses.

Marat Zakirov m.zakirov@samsung.com
Wed Sep 10 12:30:00 GMT 2014

On 09/02/2014 07:09 PM, Marat Zakirov wrote:
>> Hi all!
>> Here's a simple optimization patch for Asan. It stores alignment 
>> information into ASAN_CHECK which is then extracted by sanopt to 
>> reduce number of "and 0x7" instructions for sufficiently aligned 
>> accesses. I checked it on linux kernel by comparing results of 
>> objdump -d -j .text vmlinux | grep "and.*0x7," for optimized and 
>> regular cases. It eliminates 12% of and 0x7's.
>> No regressions. Sanitized GCC was successfully Asan-bootstrapped. No 
>> false positives were found in kernel.
>> --Marat

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdt627.diff
Type: text/x-patch
Size: 3889 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140910/417bfc70/attachment.bin>

More information about the Gcc-patches mailing list