Commit d3fb44cb by Ilya Enkovich Committed by Ilya Enkovich

tree-chkp.c (chkp_build_returned_bound): Don't predict return bounds for strchr calls.

	* tree-chkp.c (chkp_build_returned_bound): Don't predict
	return bounds for strchr calls.

From-SVN: r218479
parent 985f48f7
2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com> 2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
* tree-chkp.c (chkp_build_returned_bound): Don't predict
return bounds for strchr calls.
2014-12-08 Ilya Enkovich <ilya.enkovich@intel.com>
* tree-chkp.c (chkp_call_returns_bounds_p): New. * tree-chkp.c (chkp_call_returns_bounds_p): New.
(chkp_build_returned_bound): Use zero bounds as (chkp_build_returned_bound): Use zero bounds as
returned by calls not returning bounds. returned by calls not returning bounds.
...@@ -2165,8 +2165,7 @@ chkp_build_returned_bound (gcall *call) ...@@ -2165,8 +2165,7 @@ chkp_build_returned_bound (gcall *call)
} }
/* Do not use retbnd when returned bounds are equal to some /* Do not use retbnd when returned bounds are equal to some
of passed bounds. */ of passed bounds. */
else if ((gimple_call_return_flags (call) & ERF_RETURNS_ARG) else if (gimple_call_return_flags (call) & ERF_RETURNS_ARG)
|| gimple_call_builtin_p (call, BUILT_IN_STRCHR))
{ {
gimple_stmt_iterator iter = gsi_for_stmt (call); gimple_stmt_iterator iter = gsi_for_stmt (call);
unsigned int retarg = 0, argno; unsigned int retarg = 0, argno;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment