r218304 - in /trunk/gcc: ChangeLog sanopt.c

ygribov@gcc.gnu.org ygribov@gcc.gnu.org
Wed Dec 3 09:23:00 GMT 2014


Author: ygribov
Date: Wed Dec  3 09:23:28 2014
New Revision: 218304

URL: https://gcc.gnu.org/viewcvs?rev=218304&root=gcc&view=rev
Log:
Improve optimization of ASan checks.

2014-12-03  Yury Gribov  <y.gribov@samsung.com>

gcc/
	* sanopt.c (maybe_get_single_definition): New function.
	(maybe_get_dominating_check): Ditto.
	(can_remove_asan_check): Ditto.
	(struct tree_map_traits): New struct.
	(struct sanopt_ctx): Use custom traits for asan_check_map.
	(maybe_optimize_ubsan_null_ifn): Move code to
	maybe_get_dominating_check.
	(maybe_optimize_asan_check_ifn): Move code and take non-SSA expressions
	into account when optimizing.
	(sanopt_optimize_walker): Optimize ASan checks even when
	recovering.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/sanopt.c



More information about the Gcc-cvs mailing list