public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1
       [not found] <bug-41742-4@http.gcc.gnu.org/bugzilla/>
@ 2012-08-16 10:40 ` segher at gcc dot gnu.org
  2021-08-16  8:07 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: segher at gcc dot gnu.org @ 2012-08-16 10:40 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41742

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-08-16
                 CC|                            |segher at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Segher Boessenkool <segher at gcc dot gnu.org> 2012-08-16 10:39:45 UTC ---
Still happens on mainline: -O2 still has the superfluous sign-extend,
but now the -O1 code is perfect.


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

* [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1
       [not found] <bug-41742-4@http.gcc.gnu.org/bugzilla/>
  2012-08-16 10:40 ` [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1 segher at gcc dot gnu.org
@ 2021-08-16  8:07 ` pinskia at gcc dot gnu.org
  2023-03-23 13:54 ` bergner at gcc dot gnu.org
  2023-04-11 17:07 ` aagarwa at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-16  8:07 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
           Severity|normal                      |enhancement

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

* [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1
       [not found] <bug-41742-4@http.gcc.gnu.org/bugzilla/>
  2012-08-16 10:40 ` [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1 segher at gcc dot gnu.org
  2021-08-16  8:07 ` pinskia at gcc dot gnu.org
@ 2023-03-23 13:54 ` bergner at gcc dot gnu.org
  2023-04-11 17:07 ` aagarwa at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: bergner at gcc dot gnu.org @ 2023-03-23 13:54 UTC (permalink / raw)
  To: gcc-bugs

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

Peter Bergner <bergner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bergner at gcc dot gnu.org

--- Comment #3 from Peter Bergner <bergner at gcc dot gnu.org> ---
Update: current code (both powerpc64-linux and powerpc64le-linux) still contain
the unneeded rlwinm, but now we've replaced the loop with a call to libc's
memset and we do not shrink-wrap the call due to the use of the non-volatile
r31 in the entry block. 

foo:
        cmpdi 0,5,0
        std 31,-8(1)
        stdu 1,-128(1)
        mr 31,3
        beq 0,.L4
        mflr 0
        rlwinm 4,4,0,0xff
        std 0,144(1)
        bl memset
        nop
        ld 0,144(1)
        mtlr 0
.L4:
        addi 1,1,128
        mr 3,31
        ld 31,-8(1)
        blr

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

* [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1
       [not found] <bug-41742-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2023-03-23 13:54 ` bergner at gcc dot gnu.org
@ 2023-04-11 17:07 ` aagarwa at gcc dot gnu.org
  3 siblings, 0 replies; 4+ messages in thread
From: aagarwa at gcc dot gnu.org @ 2023-04-11 17:07 UTC (permalink / raw)
  To: gcc-bugs

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

Ajit Kumar Agarwal <aagarwa at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

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

end of thread, other threads:[~2023-04-11 17:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41742-4@http.gcc.gnu.org/bugzilla/>
2012-08-16 10:40 ` [Bug middle-end/41742] Unnecessary zero-extension at -O2 but not -O1 segher at gcc dot gnu.org
2021-08-16  8:07 ` pinskia at gcc dot gnu.org
2023-03-23 13:54 ` bergner at gcc dot gnu.org
2023-04-11 17:07 ` aagarwa 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).