tree-vrp.c (extract_range_basic): Check cfun->after_inlining before folding call...
authorKugan Vivekanandarajah <kuganv@linaro.org>
Fri, 5 Aug 2016 02:47:27 +0000 (02:47 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Fri, 5 Aug 2016 02:47:27 +0000 (02:47 +0000)
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

gcc/ChangeLog
gcc/tree-vrp.c

index 30ef9f36a7d73f53e1be3d4f7b59bffba7801def..7bb9dc96c016610fdb47b7a0d3d8a8f09df2a4fb 100644 (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
index cee6424b009ea868eade1f872c88ada822bb8564..7c7ad914f94e2144d05f999daf43c60f5c2774a4 100644 (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;