public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-15348-4@http.gcc.gnu.org/bugzilla/>]
* [Bug optimization/15348] New: [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.
@ 2004-05-09 19:30 kazu at cs dot umass dot edu
  2004-05-25  0:09 ` [Bug tree-optimization/15348] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 6+ messages in thread
From: kazu at cs dot umass dot edu @ 2004-05-09 19:30 UTC (permalink / raw)
  To: gcc-bugs

Convert foo() into baz().

void bar (void);

int
foo (int x, int y)
{
  int t1 = x < 0;
  int t2 = y < 0;
  return t1 || t2;
}

int
baz (int x, int y)
{
  return (x | y) < 0;
}

Needless to mention, we should do this fairly late in SSA optimizations.

-- 
           Summary: [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: pessimizes-code
          Severity: enhancement
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kazu at cs dot umass dot edu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2020-04-19 18:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20040509193050.15348.kazu@gcc.gnu.org>
2005-09-30 22:29 ` [Bug tree-optimization/15348] [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0 steven at gcc dot gnu dot org
     [not found] <bug-15348-4@http.gcc.gnu.org/bugzilla/>
2013-11-09 20:40 ` pinskia at gcc dot gnu.org
2014-10-31  4:01 ` pinskia at gcc dot gnu.org
2020-03-11  7:06 ` dimhen at gmail dot com
2020-04-19 18:17 ` law at redhat dot com
2004-05-09 19:30 [Bug optimization/15348] New: " kazu at cs dot umass dot edu
2004-05-25  0:09 ` [Bug tree-optimization/15348] " 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).