On Fri, Feb 20, 2015 at 02:59:51PM +0300, Marat Zakirov wrote: > Here is simple patch that moves asan phase just behind sanopt for all > O0/O1/O2/O3 modes which gives +7% on x86 SPEC2006 (ref dataset). > Regression testing and sanitized GCC bootstrapping were successfully done.
This isn't a regression, so I think it isn't appropriate for stage 4. I bet the difference is mainly vectorization. I believe the right change is to teach the vectorizer about the ASAN_CHECK internal call instead. Jakub