public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/88842] missing optimization CSE, reassociation
       [not found] <bug-88842-4@http.gcc.gnu.org/bugzilla/>
@ 2020-05-15  3:25 ` luoxhu at gcc dot gnu.org
  2021-12-23  8:15 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: luoxhu at gcc dot gnu.org @ 2020-05-15  3:25 UTC (permalink / raw)
  To: gcc-bugs

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

luoxhu at gcc dot gnu.org changed:

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

--- Comment #3 from luoxhu at gcc dot gnu.org ---
One more case of missed optimization CSE, reassoc:

void foo(unsigned int a, unsigned int b, unsigned int c, unsigned int d, int
*res1, int*res2, int *res3)
{
  *res1 = a + b + c + d;
  *res2 = b + c;
  *res3 = a + d;
}

cat foo.s
        .file   "foo.c"
        .machine power8
        .abiversion 2
        .section        ".text"
        .align 2
        .p2align 4,,15
        .globl foo
        .type   foo, @function
foo:
.LFB0:
        .cfi_startproc
        add 10,5,6
        add 10,10,4
        add 4,4,5
        add 10,10,3
        add 3,3,6
        stw 10,0(7)
        stw 4,0(8)
        stw 3,0(9)
        blr

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

* [Bug tree-optimization/88842] missing optimization CSE, reassociation
       [not found] <bug-88842-4@http.gcc.gnu.org/bugzilla/>
  2020-05-15  3:25 ` [Bug tree-optimization/88842] missing optimization CSE, reassociation luoxhu at gcc dot gnu.org
@ 2021-12-23  8:15 ` pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-23  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

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

end of thread, other threads:[~2021-12-23  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-88842-4@http.gcc.gnu.org/bugzilla/>
2020-05-15  3:25 ` [Bug tree-optimization/88842] missing optimization CSE, reassociation luoxhu at gcc dot gnu.org
2021-12-23  8:15 ` 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).