From 7d7d1ce83889ee17fbf7fb8aadf23e1f5179b9ce Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 18 Mar 2019 09:17:43 +0000 Subject: [PATCH] re PR target/87561 (416.gamess is slower by ~10% starting from r264866 with -Ofast) 2019-03-18 Richard Biener PR target/87561 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided loads and stores a bit more. From-SVN: r269754 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/i386.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a67a0bf7441..1da0fe3cfce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-03-18 Richard Biener + + PR target/87561 + * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided + loads and stores a bit more. + 2019-03-18 Richard Biener PR target/87561 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 67af1374ed6..560170f56db 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -50572,7 +50572,7 @@ ix86_add_stmt_cost (void *data, int count, enum vect_cost_for_stmt kind, && TREE_CODE (DR_STEP (STMT_VINFO_DATA_REF (stmt_info))) != INTEGER_CST) { stmt_cost = ix86_builtin_vectorization_cost (kind, vectype, misalign); - stmt_cost *= TYPE_VECTOR_SUBPARTS (vectype); + stmt_cost *= (TYPE_VECTOR_SUBPARTS (vectype) + 1); } if (stmt_cost == -1) stmt_cost = ix86_builtin_vectorization_cost (kind, vectype, misalign); -- 2.30.2