public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/40170] redundant zero extensions
       [not found] <bug-40170-4@http.gcc.gnu.org/bugzilla/>
@ 2021-07-26  5:58 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: pinskia at gcc dot gnu.org @ 2021-07-26  5:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |11.0
         Resolution|---                         |FIXED
          Component|target                      |tree-optimization
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed for GCC 11, in EVRP.  I can't figure out which patch caused it but what
happens is the following:
We figure out the range of _3 to be [0, 255]
 _3 = (int) bit_16;

While processing:
  _4 = _2 >> _3;

We figure out the range of _4 is still [0, 255] as it is a right shift so we
cannot change any upper bits.

And then we match and simplify the following:
  _24 = _4 & 255;

to just:
 _24 = _4;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-26  5:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40170-4@http.gcc.gnu.org/bugzilla/>
2021-07-26  5:58 ` [Bug tree-optimization/40170] redundant zero extensions 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).