From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B57FB3857034; Fri, 16 Oct 2020 11:00:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B57FB3857034 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto Date: Fri, 16 Oct 2020 11:00:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 10.1.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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords everconfirmed short_desc cf_reconfirmed_on target_milestone component bug_status cc priority 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, 16 Oct 2020 11:00:48 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97456 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Ever confirmed|0 |1 Summary|An incorrect optimization |[10/11 Regression] An |causes a function to always |incorrect optimization |return the same value when |causes a function to always |using -flto |return the same value when | |using -flto Last reconfirmed| |2020-10-16 Target Milestone|--- |10.3 Component|c++ |ipa Status|UNCONFIRMED |NEW CC| |jamborm at gcc dot gnu.org, | |marxin at gcc dot gnu.org Priority|P3 |P2 --- Comment #2 from Richard Biener --- Confirmed with -fwhole-program -O3 IPA SRA messes things up here cloning w= rong and producing the strange wrong.isra (floatD.41 ISRA.85D.75004) { complex floatD.45 c$_M_valueD.75007; floatD.41 & posD.75005; floatD.41 & posD.75006; floatD.41 _1; complex floatD.45 _2; complex floatD.45 _3; floatD.41 _4; floatD.41 _5; floatD.41 _6; doubleD.42 _7; floatD.41 _8; [local count: 1073741824]: [local count: 1073741824]: _1 =3D ISRA.85_10(D); eventually mixing up param/replacement here?=