From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6279386102F; Tue, 6 Apr 2021 14:17:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6279386102F From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/99927] [11 Regression] Maybe wrong code since r11-39-gf9e1ea10e657af9f Date: Tue, 06 Apr 2021 14:17:48 +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: 11.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.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: Tue, 06 Apr 2021 14:17:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99927 --- Comment #4 from Richard Biener --- Trying 105, 107 -> 108: 105: r135:QI=3D0x1 107: flags:CCZ=3Dcmp(r107:SI,0) 108: r96:QI=3D{(flags:CCZ=3D=3D0)?r107:SI#0:r135:QI} REG_DEAD r107:SI REG_DEAD flags:CC Failed to match this instruction: (parallel [ (set (reg:QI 96 [ var_lsm_flag.12 ]) (subreg:QI (reg:SI 107) 0)) (set (reg:QI 135) (const_int 1 [0x1])) ]) Failed to match this instruction: (parallel [ (set (reg:QI 96 [ var_lsm_flag.12 ]) (subreg:QI (reg:SI 107) 0)) (set (reg:QI 135) (const_int 1 [0x1])) ]) Successfully matched this instruction: (set (reg:QI 135) (const_int 1 [0x1])) Successfully matched this instruction: (set (reg:QI 96 [ var_lsm_flag.12 ]) (subreg:QI (reg:SI 107) 0)) allowing combination of insns 105, 107 and 108 original costs 4 + 4 + 8 =3D 16 replacement costs 4 + 4 =3D 8 deferring deletion of insn with uid =3D 105. modifying insn i2 107: r135:QI=3D0x1 deferring rescan insn with uid =3D 107. modifying insn i3 108: r96:QI=3Dr107:SI#0 REG_DEAD r107:SI deferring rescan insn with uid =3D 108. note that insn 107 was the CC setter for the if-then-else but we now have a plain move there.=