From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 484A83858D39; Tue, 7 Mar 2023 06:34:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 484A83858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678170846; bh=D9ujE13PubaI9we0HQfNHOG5PZh+0iSAJ7zvus898YY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IVELGScONb49OQgoUQXJ4OVMFjBz8k13B6YBJvDJXX2n751rOx4haxLG2sBPjiwL7 kXkDTXALX7j3HlgjWOPWNqMBe0ZHViWvaIUQqzi6iPJ3+crQaPDTpr5GivkwL/4ywd 7w5UTv6ndOE68J2ZsqniN7ZWN/9quenCCKLLAhiU= From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109048] [13 regression] redundant mask compare generated by vectorizer. Date: Tue, 07 Mar 2023 06:34:06 +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: 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: 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=3D109048 --- Comment #4 from Hongtao.liu --- (In reply to Hongtao.liu from comment #3) > A three-operand phi make ifcvt generate worse code >=20 It saved 1 add for potential 1.f + 0.f/1.f since it's constant, but generat= es more logic operations for predicates. Hmm, it looks good for scalar since it's just compare and jump, but hurt vectorization due to more logical operations for predicates.=