]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Patch GCC 4.9/Vect] Partial backport of r228751 (pr68238)
authorJames Greenhalgh <james.greenhalgh@arm.com>
Tue, 10 Nov 2015 14:40:43 +0000 (14:40 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Tue, 10 Nov 2015 14:40:43 +0000 (14:40 +0000)
Partial backport from trunk r228751.
PR tree-optimization/68238
2015-10-13  Richard Biener  <rguenther@suse.de>

* tree-vect-loop.c (vect_estimate_min_profitable_iters): Use
LOOP_VINFO_COMP_ALIAS_DDRS to estimate alias versioning cost.

From-SVN: r230110

gcc/ChangeLog
gcc/tree-vect-loop.c

index 0c0c3df60f33e503f46485adc702e1d212935b1c..94e0cfce764ed383141ed9be3ffb7e1ff3e2defd 100644 (file)
@@ -1,3 +1,12 @@
+2015-11-10  James Greenhalgh  <james.greenhalgh@arm.com>
+
+       Partial backport from trunk r228751.
+       PR tree-optimization/68238
+       2015-10-13  Richard Biener  <rguenther@suse.de>
+
+       * tree-vect-loop.c (vect_estimate_min_profitable_iters): Use
+       LOOP_VINFO_COMP_ALIAS_DDRS to estimate alias versioning cost.
+
 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR target/57845
index 16bbefd20d1f4bb587fd29e25f2c7bf07b80fe7a..d5454faa1ac1f0626067a6034e24f0fd8fd0f190 100644 (file)
@@ -2792,7 +2792,7 @@ vect_estimate_min_profitable_iters (loop_vec_info loop_vinfo,
   if (LOOP_REQUIRES_VERSIONING_FOR_ALIAS (loop_vinfo))
     {
       /*  FIXME: Make cost depend on complexity of individual check.  */
-      unsigned len = LOOP_VINFO_MAY_ALIAS_DDRS (loop_vinfo).length ();
+      unsigned len = LOOP_VINFO_COMP_ALIAS_DDRS (loop_vinfo).length ();
       (void) add_stmt_cost (target_cost_data, len, vector_stmt, NULL, 0,
                            vect_prologue);
       dump_printf (MSG_NOTE,