[PATCHv2] Enhance ASAN_CHECK optimization

2014-12-03 Thread Yury Gribov
On 11/25/2014 08:06 PM, Yury Gribov wrote: This patch improves current optimization of ASAN_CHECKS performed by sanopt pass. In addition to searching the sanitized pointer in asan_check_map, it also tries to search for definition of this pointer. This allows more checks to be dropped when

Re: [PATCHv2] Enhance ASAN_CHECK optimization

2014-12-03 Thread Jakub Jelinek
On Wed, Dec 03, 2014 at 11:09:41AM +0300, Yury Gribov wrote: From 5a9ede4d120ba4e39ca47e212262af53de47eb5a Mon Sep 17 00:00:00 2001 From: Yury Gribov y.gri...@samsung.com Date: Tue, 25 Nov 2014 11:49:11 +0300 Subject: [PATCH] 2014-12-02 Yury Gribov y.gri...@samsung.com gcc/ *

Re: [PATCHv2] Enhance ASAN_CHECK optimization

2014-12-03 Thread Yury Gribov
On 12/03/2014 11:36 AM, Jakub Jelinek wrote: I thought I've agreed that we can optimize checks away for asan even when recovering. The patch is ok for trunk anyway, we can perhaps make it tunable later, or define asan_can_optimize_checks to true unconditionally. Snap, looks like my English

Re: [PATCHv2] Enhance ASAN_CHECK optimization

2014-12-03 Thread Jakub Jelinek
On Wed, Dec 03, 2014 at 12:04:13PM +0300, Yury Gribov wrote: On 12/03/2014 11:36 AM, Jakub Jelinek wrote: I thought I've agreed that we can optimize checks away for asan even when recovering. The patch is ok for trunk anyway, we can perhaps make it tunable later, or define