PR82289: Computing peeling costs for irrelevant drs
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 22 Sep 2017 17:04:51 +0000 (17:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 22 Sep 2017 17:04:51 +0000 (17:04 +0000)
commitea44495d106582b951de1e84d9d7849d3783a56d
treeb076f5f5fcdbd91d3cf64c00f6c18bb983605c16
parent597fdf45ede583ca1e88ce9f2923673b1238cdf8
PR82289: Computing peeling costs for irrelevant drs

This PR shows that we weren't filtering out irrelevant stmts in
vect_get_peeling_costs_all_drs (unlike related loops in which
we iterate over all datarefs).

2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
PR tree-optimization/82289
* tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Check
STMT_VINFO_RELEVANT_P.

gcc/testsuite/
PR tree-optimization/82289
* gcc.dg/vect/pr82289.c: New test.

From-SVN: r253103
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr82289.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c