From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2F3C03853D23; Thu, 24 Aug 2023 07:44:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2F3C03853D23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692863094; bh=kSMQDEmwGW5MwdVIrOcfCkhhuYgXSMxUtU3n4Z/fL2o=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J0mvipApwXU+f3gYzFYtNjcMrUBfzJXTWRwbq6CZIHaGhDGJuqVgUEFM0S3EESu2U cFSKC8aevTa3G6hlS0UgJeYpy3PNdwjctPdvT+qzQ/q6bQqC81XU2PT2J8X4uEd2xc FaJ1Uq6mYnxTaRnrg/N8ws4xZifHwwFHrTrWau5g= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49795] vectorization of conditional code happens only on local variables Date: Thu, 24 Aug 2023 07:44:53 +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: 4.7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: 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=3D49795 --- Comment #7 from Andrew Pinski --- (In reply to vincenzo Innocente from comment #6) loop1, loop2, and loop4 all vectorize now at -O3. loop3 can vectorize with -O3 -fno-trapping-math (it can also be vectorize at -O3 on x86_64 with -march=3Dskylake-avx512 or on aarch64 with SVE enabled). I almost want to say there is not much to do here. also about comment #0, the vectorizer does happen for -mavx2. So maybe this= is enough these days ...=