From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C5D323973053; Fri, 8 Jan 2021 13:22:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5D323973053 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi85ODYwMl0gTmV3OiBGYWls?= =?UTF-8?B?dXJlIHRvIG9wdGltaXNlIHZlY3RvciDigJx4ID4gLTEwMCA/IHggOiAtMTAw?= =?UTF-8?B?4oCdIHRvIE1BWF9FWFBS?= Date: Fri, 08 Jan 2021 13:22:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 08 Jan 2021 13:22:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98602 Bug ID: 98602 Summary: Failure to optimise vector =E2=80=9Cx > -100 ? x : -100= =E2=80=9D to MAX_EXPR Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: rsandifo at gcc dot gnu.org Target Milestone: --- We don't fold: typedef int v4si __attribute__ ((vector_size(16))); v4si f (v4si x) { return x > -100 ? x : -100; } to a MAX_EXPR, even though we do if -100 is replaced with a nonnegative constant or a variable. This may be related to the remaining part of PR95906.=