tree-vrp.c (extract_range_basic): Check cfun->after_inlining before folding call to __builtin_constant_p with...

gcc/ChangeLog:

2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>

	* tree-vrp.c (extract_range_basic): Check cfun->after_inlining
	before folding call to __builtin_constant_p with parameters to false.

From-SVN: r239162
This commit is contained in:
Kugan Vivekanandarajah 2016-08-05 02:47:27 +00:00 committed by Kugan Vivekanandarajah
parent 7ffedfee02
commit 343092cfa2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2016-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
* tree-vrp.c (extract_range_basic): Check cfun->after_inlining
before folding call to __builtin_constant_p with parameters to false.
2016-08-05 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete

View File

@ -3785,7 +3785,8 @@ extract_range_basic (value_range *vr, gimple *stmt)
arg = gimple_call_arg (stmt, 0);
if (TREE_CODE (arg) == SSA_NAME
&& SSA_NAME_IS_DEFAULT_DEF (arg)
&& TREE_CODE (SSA_NAME_VAR (arg)) == PARM_DECL)
&& TREE_CODE (SSA_NAME_VAR (arg)) == PARM_DECL
&& cfun->after_inlining)
{
set_value_range_to_null (vr, type);
return;