From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A6CC3858C50; Thu, 9 Feb 2023 09:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A6CC3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675935441; bh=nnXdS0o5Ej9MTXnxq3ygCBthJQiqd6+rWe4rwPTCJ68=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XOlgPbwwPFShjGB///SQamJysN3TFKJFGGewc4W+b3y2mEd55gVD7HgMagrrB2J7u p1pYiU5aKJOYRCRR6Thsd5AZ+zLuYO2nBjF4G0FPYtoNm7m1CUpIyb4Kzh6+YickwS 2ti+YznTgoJVfz7Fc4KNL/50ZblltZ+2h1P4AGds= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108724] Poor codegen when summing two arrays without AVX or SSE Date: Thu, 09 Feb 2023 09:37:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108724 Hongtao.liu changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com --- Comment #2 from Hongtao.liu --- Guess it's related to=20 8537bool 8538vect_can_vectorize_without_simd_p (tree_code code) 8539{ 8540 switch (code) 8541 { 8542 case PLUS_EXPR: 8543 case MINUS_EXPR: 8544 case NEGATE_EXPR: 8545 case BIT_AND_EXPR: 8546 case BIT_IOR_EXPR: 8547 case BIT_XOR_EXPR: 8548 case BIT_NOT_EXPR: 8549 return true; 8550 8551 default: 8552 return false; 8553 } vectorizer will still do vectorization even without simd instructions.=