From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67FCF3858408; Tue, 30 Nov 2021 16:59:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67FCF3858408 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi84MjA5MF0gQm9ndXMgd2Fy?= =?UTF-8?B?bmluZzog4oCYbWFnaWNfcOKAmSBtYXkgYmUgdXNlZCB1bmluaXRpYWxpemVk?= =?UTF-8?B?IGluIHRoaXMgZnVuY3Rpb24gWy1XbWF5YmUtdW5pbml0aWFsaXplZF0=?= Date: Tue, 30 Nov 2021 16:59:39 +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: 7.2.1 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh 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: 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 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: Tue, 30 Nov 2021 16:59:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82090 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aldyh at gcc dot gnu.org, | |amacleod at redhat dot com, | |law at gcc dot gnu.org --- Comment #3 from Aldy Hernandez --- > Jump threading probably gives up because of the asm (). Actually the problem is the number of instructions in the asm. The path starting at 3->4 would elide the undefined read but the asm has a = ton of statements and the threadfull* passes fail to even look at the path: Checking profitability of path (backwards): bb:4 (18 insns) bb:3 Control statement insns: 2 Overall: 16 insns FAIL: Did not thread around loop and would copy too many statements. Assuming estimate_num_insns() is correct for the asm inline, we can't depen= d on the threader. Hmmm, I keep thinking we need a path solver/ranger aware uninit pass :).=