From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF6BF385842F; Tue, 2 Nov 2021 07:52:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF6BF385842F From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103037] [11/12 Regression] Wrong code with -O2 since r11-6100-gd41b097350d3c5d0 Date: Tue, 02 Nov 2021 07:52:32 +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: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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: 11.3 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: Tue, 02 Nov 2021 07:52:33 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103037 --- Comment #2 from Andrew Pinski --- (In reply to Martin Li=C5=A1ka from comment #1) > Confirmed, started with r11-6100-gd41b097350d3c5d0. Hmm, it is definitely PRE causing the problem: [changed] ANTIC_IN[7] :=3D { _20 (0014), a_25 (0016), iftmp.0_10 (0008), _29 (0018), {trunc_div_expr,_29,iftmp.0_10} (0004), {nop_expr,_5} (0005), {plus_expr,a_25,3} (0012) } S[7] :=3D { } Applying pattern match.pd:340, gimple-match.c:16554 ANTIC_OUT[6] :=3D { _20 (0014), iftmp.0_14 (0011), a_25 (0016), {plus_expr,a_25,3} (0012) } [changed] ANTIC_IN[6] :=3D { _20 (0014), iftmp.0_14 (0011), a_25 (0016), {plus_expr,a_25,3} (0012) } S[6] :=3D { _20 (0014), iftmp.0_14 (0011), a_25 (0016), {plus_expr,a_25,3} = (0012) } Created SSA_NAME representative pretmp_16 for expression:{trunc_div_expr,_28,_3} (0020) ANTIC_OUT[5] :=3D { _20 (0014), a_25 (0016), _28 (0017), iftmp.0_15 (0002), {plus_expr,a_25,3} (0012), {trunc_div_expr,_28,_3} (0020), {nop_expr,pretmp= _16} (0021) } [changed] ANTIC_IN[5] :=3D { _20 (0014), a_25 (0016), _19 (0013), {nop_expr= ,_19} (0002), _28 (0017), {plus_expr,a_25,3} (0012), {trunc_div_expr,_28,_3} (002= 0), {nop_expr,pretmp_16} (0021) } S[5] :=3D { _20 (0014), a_25 (0016), _28 (0017), {plus_expr,a_25,3} (0012), {trunc_div_expr,_28,_3} (0020), {nop_expr,pretmp_16} (0021) } Applying pattern match.pd:350, gimple-match.c:8615 ANTIC_OUT[9] :=3D { _20 (0014), a_25 (0016), _19 (0013), {nop_expr,_19} (00= 02), {plus_expr,a_25,3} (0012) } [changed] ANTIC_IN[9] :=3D { _20 (0014), a_25 (0016), _19 (0013), {nop_expr= ,_19} (0002), {plus_expr,a_25,3} (0012) } S[9] :=3D { _20 (0014), a_25 (0016), _19 (0013), {nop_expr,_19} (0002), {plus_expr,a_25,3} (0012) } Applying pattern match.pd:350, gimple-match.c:8615=