aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-10-27 08:47:25 -0700
committerIan Lance Taylor <iant@golang.org>2021-10-27 08:47:25 -0700
commita6d3012b274f38b20e2a57162106f625746af6c6 (patch)
tree09ff8b13eb8ff7594c27dc8812efbf696dc97484 /gcc/tree-predcom.c
parentcd2fd5facb5e1882d3f338ed456ae9536f7c0593 (diff)
parent99b1021d21e5812ed01221d8fca8e8a32488a934 (diff)
downloadgcc-a6d3012b274f38b20e2a57162106f625746af6c6.zip
gcc-a6d3012b274f38b20e2a57162106f625746af6c6.tar.gz
gcc-a6d3012b274f38b20e2a57162106f625746af6c6.tar.bz2
Merge from trunk revision 99b1021d21e5812ed01221d8fca8e8a32488a934.
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 6b195d1..208e755 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -233,6 +233,7 @@ along with GCC; see the file COPYING3. If not see
#include "tree-scalar-evolution.h"
#include "tree-affine.h"
#include "builtins.h"
+#include "opts.h"
/* The maximum number of iterations between the considered memory
references. */
@@ -3397,8 +3398,7 @@ pcom_worker::tree_predictive_commoning_loop (bool allow_unroll_p)
the phi nodes in execute_pred_commoning_cbck. A bit hacky. */
replace_phis_by_defined_names (m_chains);
- edge exit = single_dom_exit (m_loop);
- tree_transform_and_unroll_loop (m_loop, unroll_factor, exit, &desc,
+ tree_transform_and_unroll_loop (m_loop, unroll_factor, &desc,
execute_pred_commoning_cbck, &dta);
eliminate_temp_copies (m_loop, tmp_vars);
}
@@ -3492,7 +3492,7 @@ public:
only if predictive commoning isn't set explicitly, and it
doesn't allow unrolling. */
if (flag_tree_loop_vectorize
- && !global_options_set.x_flag_predictive_commoning)
+ && !OPTION_SET_P (flag_predictive_commoning))
return true;
return false;