From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 42B9F38930D5; Fri, 24 Apr 2020 07:52:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 42B9F38930D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587714740; bh=c/0wlIDDlaAQc7/MjRxYp3RT215hnLhatsz+hL4xwUU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IGcXWl79V87b5vN5Ewbb+qYCY7iKM6s3km2aJanF3Tkld6C/qTFhPCQBIPy7SeDdt DfN4iQVHw9EVn4g6cWnbbHHCR0FY7ciDgRueiEHSb0ZKT+1YDP8ODnVf3bv8a50NAU 6nCw3XVgq4f+PayvPowaGVOccTDDjQoduVy5pILs= 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:52: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:52:20 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94734 --- Comment #8 from Richard Biener --- 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.=