From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DD03538930DC; Fri, 24 Apr 2020 07:55:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DD03538930DC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587714920; bh=PxxAtWddfB3kOi5JymA81oJyBzGS1l59CQi810zkzpM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=BIi8acW7jYPkk3iLAdzSoJNHCdzq4NrTYM8qfDwuJyqIQvdyOQVcb97tNOkXxiiWk nGfr47mtVn31/0w8i4z076GqXlH7N3bR2NSXvo/GHCMpk34Njnq3X1fDAYh+T7GTsB mqMcaskFht6RHmCfpCHU7wV/uFtXWAelAprlrQK0= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94734] [10 Regression] Program crashes when compiled with -O2 since r10-1892-gb9ef6a2e04bfd013 Date: Fri, 24 Apr 2020 07:55: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: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 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: Fri, 24 Apr 2020 07:55:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94734 --- Comment #9 from Richard Biener --- (In reply to Richard Biener from comment #8) > In particular tree_could_trap_p woudl consider the load possibly trapping > due to the variable indexing but the patch seems to override that which > I agree is bogus. I think we need to revert it and re-implement for GCC = 11. > All testcases contain a dominating load in the condition and what we _can_ > do is treat loads of stack variables the same as stores as far as > non-trappingness is concerned. Actually the non-trapping machinery only considers plain SSA name dereferences so there's much more to extend. Definitely nothing for GCC 10.=