This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77848] Gimple if-conversion results in redundant comparisons
- From: "wschmidt at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 Nov 2016 13:42:53 +0000
- Subject: [Bug tree-optimization/77848] Gimple if-conversion results in redundant comparisons
- Auto-submitted: auto-generated
- References: <bug-77848-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77848
--- Comment #12 from Bill Schmidt <wschmidt at gcc dot gnu.org> ---
So I'll now test
Index: gcc/tree-if-conv.c
===================================================================
--- gcc/tree-if-conv.c (revision 241802)
+++ gcc/tree-if-conv.c (working copy)
@@ -2767,7 +2767,9 @@ tree_if_conversion (struct loop *loop)
|| loop->dont_vectorize))
goto cleanup;
- if ((any_pred_load_store || any_complicated_phi)
+ /* FIXME: When SLP vectorization can handle if-conversion on its own,
+ predicate all of if-conversion on flag_tree_loop_vectorize. */
+ if ((any_pred_load_store || any_complicated_phi || flag_tree_loop_vectorize)
&& !version_loop_for_if_conversion (loop))
goto cleanup;