From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 24BE13840C33; Wed, 20 May 2020 06:36:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24BE13840C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1589956611; bh=XuSawrEyzzXwoUqxakjjhJCwuvJuYnWeTBfnMW0Dd6o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d0WU+LfShPfpDq/dovhB61KjxJ65b844a2VQCOaoh47juezSflnleOo+FBzXCdlt1 N5KN9QFVA58ELiAp443/yCn/qAkWA10Ovfyqwsl8kjm/4RKqUjunGfL5knjejlIbQW JO8rIZgFpEdFa9aNdMhdUmZDjlQMVz4xuQhnQkXc= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/95219] [11 Regression] FAIL: gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c Date: Wed, 20 May 2020 06:36:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on everconfirmed assigned_to target_milestone bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2020 06:36:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95219 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-05-20 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Target Milestone|--- |11.0 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Richard Biener --- I think this one is a bit older though (IIRC it was disabled before due to a testsuite bug). Vectorization _is_ clearly profitable - we're now using SLP (possibly since that got induction support): Vector inside of loop cost: 24 Vector prologue cost: 0 Vector epilogue cost: 0 Scalar iteration cost: 48 Scalar outside cost: 0 Vector outside cost: 0 prologue iterations: 0 epilogue iterations: 0 Calculated minimum iters for profitability: 0 vectorized to .L2: movdqa %xmm0, %xmm4 movdqa %xmm1, %xmm3 paddq %xmm2, %xmm0 addq $32, %rdi movups %xmm4, -32(%rdi) paddq %xmm2, %xmm1 movups %xmm3, -16(%rdi) cmpq %rdi, %rax jne .L2 there's a missed optimization in that we choose two (identical) IVs for the induction (late FRE is in "simple" mode and thus does not get rid of th= ose as equivalent) and that we have odd IVs (the extra moves), possibly out-of-SSA cannot coalesce because of the constants: # vect_vec_iv_.7_1 =3D PHI <{ 0, 0 }(2), _19(3)> # vect_vec_iv_.8_18 =3D PHI <{ 0, 0 }(2), _17(3)> and tricks maybe do not apply because of vector types. I'll take this bug.=