public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/14617] [tree-ssa] suboptimal code ('0' <= c && c <= '9') ? c - '0' : 0
       [not found] <bug-14617-4@http.gcc.gnu.org/bugzilla/>
@ 2012-02-07 20:19 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-02-07 20:19 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2005-12-15 04:47:37         |2012-02-07 0:00

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-07 20:18:59 UTC ---
I have a patch which improves this to:
<bb 2>:
  D.1957_3 = (unsigned int) c_2(D);
  D.1958_4 = D.1957_3 + 4294967248;
  if (D.1958_4 <= 9)
    goto <bb 3>;
  else
    goto <bb 4>;

<bb 3>:
  D.1961_5 = (int) c_2(D);
  D.1955_6 = D.1961_5 + -48;

<bb 4>:
  # D.1955_1 = PHI <D.1955_6(3), 0(2)>

--- CUT ---
Note the addition is found via PRE on the RTL level though and then we convert
it to the an ifconversion but we should able to find that on TREE Level.


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

* [Bug tree-optimization/14617] [tree-ssa] suboptimal code ('0' <= c && c <= '9') ? c - '0' : 0
  2004-03-17  9:03 [Bug optimization/14617] New: " kazu at cs dot umass dot edu
@ 2004-05-24 16:40 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 16:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.5.0                       |---


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


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

end of thread, other threads:[~2012-02-07 20:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-14617-4@http.gcc.gnu.org/bugzilla/>
2012-02-07 20:19 ` [Bug tree-optimization/14617] [tree-ssa] suboptimal code ('0' <= c && c <= '9') ? c - '0' : 0 pinskia at gcc dot gnu.org
2004-03-17  9:03 [Bug optimization/14617] New: " kazu at cs dot umass dot edu
2004-05-24 16:40 ` [Bug tree-optimization/14617] " pinskia at gcc dot gnu dot 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).