This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/67731] Combine of OR'ed bitfields should use bit-test


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

--- Comment #7 from rguenther at suse dot de <rguenther at suse dot de> ---
On Fri, 9 Jun 2017, tetra2005 at gmail dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67731
> 
> --- Comment #6 from Yuri Gribov <tetra2005 at gmail dot com> ---
> (In reply to rguenther@suse.de from comment #5)
> > On Fri, 9 Jun 2017, tetra2005 at gmail dot com wrote:
> > 
> > > This should probly go to reassoc? Or better keep it in folder?
> > 
> > As loads are involved it doesn't really fit reassoc.  Likewise it doesn't
> > really fit the folder.
> 
> The || case is optimized by the folder.

Yes, but that's quite premature and doesn't work for

 if (..)
 else if (..)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]