[Bug optimization/15348] New: [tree-ssa] Convert (x < 0) || (y < 0) into (x | y) < 0.
kazu at cs dot umass dot edu
gcc-bugzilla@gcc.gnu.org
Sun May 9 19:30:00 GMT 2004
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
More information about the Gcc-bugs
mailing list