This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15348] New: [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2004 19:30:51 -0000
- Subject: [Bug optimization/15348] New: [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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