public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/80874] gcc does not emit cmov for minmax [not found] <bug-80874-4@http.gcc.gnu.org/bugzilla/> @ 2021-07-19 1:51 ` pinskia at gcc dot gnu.org 2023-07-21 7:40 ` [Bug tree-optimization/80874] " pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-07-19 1:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80874 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-linux-gnu Component|tree-optimization |target Keywords| |missed-optimization --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- aarch64 produces the cmov: minmax1(int, int): cmp w0, w1 csel w2, w0, w1, gt csel w0, w1, w0, gt orr x0, x0, x2, lsl 32 ret minmax2(int, int): cmp w0, w1 csel w2, w1, w0, le csel w0, w0, w1, le orr x0, x0, x2, lsl 32 ret Note minmax3 code is not correct itself returns a std::pair<int&,int&> ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/80874] gcc does not emit cmov for minmax [not found] <bug-80874-4@http.gcc.gnu.org/bugzilla/> 2021-07-19 1:51 ` [Bug target/80874] gcc does not emit cmov for minmax pinskia at gcc dot gnu.org @ 2023-07-21 7:40 ` pinskia at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-07-21 7:40 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80874 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-07-21 Ever confirmed|0 |1 Component|target |tree-optimization Depends on| |67962 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is basically PR 67962. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67962 [Bug 67962] Optimization opportunity with conditional swap to two MIN/MAX in phiopt ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-21 7:40 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-80874-4@http.gcc.gnu.org/bugzilla/> 2021-07-19 1:51 ` [Bug target/80874] gcc does not emit cmov for minmax pinskia at gcc dot gnu.org 2023-07-21 7:40 ` [Bug tree-optimization/80874] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).