From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D3902386F035; Thu, 20 Aug 2020 11:36:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3902386F035 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597923371; bh=ZU4FJ78DoKnWrXPr/JKgxp5OMG6C8LaQCdnN8XbbvHI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=k5mxZ2EBlhgyM3qT31KQqEXaZdx+xgbKJPxVvEwp2SctHOmVrKe0JPMQ+DcDJtWdR jWZZjuZCpEF28EsLvZhLWkT3taus2Hm5JobJFc4o0x7VMlDNOBjC2/I9Su+vm2KK+J NWZG4yRLc//ymzdk1B6/f0sJUdEapcK5kI0fItB0= From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96633] missed optimization? Date: Thu, 20 Aug 2020 11:36:11 +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: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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 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: Thu, 20 Aug 2020 11:36:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96633 --- Comment #3 from Martin Li=C5=A1ka --- (In reply to Alexander Monakov from comment #2) > Martin added me to CC so I assume he wants me to chime in. Yes, you understood very well and thanks for the reply. ...=20 > With that out of the way: striving to get efficient branchless code on th= is > code is not very valuable in practice, because the caller is likely to > perform a conditional branch on the result anyway. So making isWhitespace > branchless simply moves the misprediction cost to the caller, making the > overall code slower. That's very important observation!=