public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/35288] Expression reassociation problem
       [not found] <bug-35288-4@http.gcc.gnu.org/bugzilla/>
@ 2010-11-02 23:40 ` xinliangli at gmail dot com
  2021-12-23  8:14 ` [Bug tree-optimization/35288] " pinskia at gcc dot gnu.org
  1 sibling, 0 replies; 2+ messages in thread
From: xinliangli at gmail dot com @ 2010-11-02 23:40 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from davidxl <xinliangli at gmail dot com> 2010-11-02 23:40:15 UTC ---
LLVM got it right:


    addl    %esi, %edi
    leal    (%rdx,%rdi,2), %eax

vs gcc:


    addl    %esi, %edx
    leal    (%rsi,%rdi,2), %edi
    leal    (%rdi,%rdx), %eax

vs open64:


    leal 0(%rdi,%rsi,1), %eax         # [0] 
    addl %esi,%edx                    # [0] 
    addl %edx,%edi                    # [1] 
    addl %edi,%eax                    # [2] 

David


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

* [Bug tree-optimization/35288] Expression reassociation problem
       [not found] <bug-35288-4@http.gcc.gnu.org/bugzilla/>
  2010-11-02 23:40 ` [Bug middle-end/35288] Expression reassociation problem xinliangli at gmail dot com
@ 2021-12-23  8:14 ` 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:14 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
          Component|middle-end                  |tree-optimization
           Keywords|                            |missed-optimization

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
If we use -fwrapv, then GCC is able to get it. THere might be a dup of this bug
already too.

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-35288-4@http.gcc.gnu.org/bugzilla/>
2010-11-02 23:40 ` [Bug middle-end/35288] Expression reassociation problem xinliangli at gmail dot com
2021-12-23  8:14 ` [Bug tree-optimization/35288] " 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).