tree-if-conv.c: Include params.h.
authorRichard Biener <rguenther@suse.de>
Thu, 10 Dec 2015 09:10:40 +0000 (09:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Dec 2015 09:10:40 +0000 (09:10 +0000)
2015-12-10  Richard Biener  <rguenther@suse.de>

* tree-if-conv.c: Include params.h.
(ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
instead of flag_tree_loop_if_convert_stores to guard cases
we'd introduce store-data-races.

From-SVN: r231495

gcc/ChangeLog
gcc/tree-if-conv.c

index b5ee0be9a537db4dcd709d845c020015570a8987..6f9fc2bd2320d03014a753bb96bbc9e19b5659da 100644 (file)
@@ -1,3 +1,10 @@
+2015-12-10  Richard Biener  <rguenther@suse.de>
+
+       * tree-if-conv.c: Include params.h.
+       (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
+       instead of flag_tree_loop_if_convert_stores to guard cases
+       we'd introduce store-data-races.
+
 2015-12-10  Richard Biener  <rguenther@suse.de>
 
        PR ipa/68721
index 63da90a4d3fa0213317267216e3243fa0a003463..635a55204c39effc733f33409d35d5917128a74c 100644 (file)
@@ -112,6 +112,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "tree-hash-traits.h"
 #include "varasm.h"
 #include "builtins.h"
+#include "params.h"
 
 /* List of basic blocks in if-conversion-suitable order.  */
 static basic_block *ifc_bbs;
@@ -714,7 +715,7 @@ ifcvt_memrefs_wont_trap (gimple *stmt, vec<data_reference_p> drs)
          to unconditionally.  */
       if (base_master_dr
          && DR_BASE_W_UNCONDITIONALLY (*base_master_dr))
-       return flag_tree_loop_if_convert_stores;
+       return PARAM_VALUE (PARAM_ALLOW_STORE_DATA_RACES);
       else
        {
          /* or the base is know to be not readonly.  */
@@ -722,7 +723,7 @@ ifcvt_memrefs_wont_trap (gimple *stmt, vec<data_reference_p> drs)
          if (DECL_P (base_tree)
              && decl_binds_to_current_def_p (base_tree)
              && ! TREE_READONLY (base_tree))
-           return flag_tree_loop_if_convert_stores;
+           return PARAM_VALUE (PARAM_ALLOW_STORE_DATA_RACES);
        }
     }
   return false;