public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/88403] [Mips,AArch64] The gcse and division/mod by 1000 prevents if-conversion
       [not found] <bug-88403-4@http.gcc.gnu.org/bugzilla/>
@ 2023-06-02  4:42 ` pinskia at gcc dot gnu.org
  2023-06-02  4:44 ` [Bug rtl-optimization/88403] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-02  4:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88403

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2023-06-02
           Severity|normal                      |enhancement
     Ever confirmed|0                           |1
            Summary|[Mips,AArch64] The gcse     |[Mips,AArch64] The gcse and
                   |prevents if-conversion      |division/mod by 1000
                   |                            |prevents if-conversion
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
GCSE is doing the right thing, just ifcvt can't handle this currently.

Here is a reduced testcase:
```
int f(int a, int b)
{
        if (a % 10000 > 10000/2)
          a+= 10000/2;
        return a / 10000;
}
```

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug rtl-optimization/88403] The gcse and division/mod by 1000 prevents if-conversion
       [not found] <bug-88403-4@http.gcc.gnu.org/bugzilla/>
  2023-06-02  4:42 ` [Bug rtl-optimization/88403] [Mips,AArch64] The gcse and division/mod by 1000 prevents if-conversion pinskia at gcc dot gnu.org
@ 2023-06-02  4:44 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-02  4:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88403

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|mips, aarch64               |mips, aarch64 x86_64
            Summary|[Mips,AArch64] The gcse and |The gcse and division/mod
                   |division/mod by 1000        |by 1000 prevents
                   |prevents if-conversion      |if-conversion

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With my reduced testcase, x86_64 has the same issue too.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-02  4:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-88403-4@http.gcc.gnu.org/bugzilla/>
2023-06-02  4:42 ` [Bug rtl-optimization/88403] [Mips,AArch64] The gcse and division/mod by 1000 prevents if-conversion pinskia at gcc dot gnu.org
2023-06-02  4:44 ` [Bug rtl-optimization/88403] " 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).