This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15268] New: [tree-ssa] return statements are not combined on the tree level
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2004 17:19:12 -0000
- Subject: [Bug optimization/15268] New: [tree-ssa] return statements are not combined on the tree level
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code (Derived from PR 15245) is not optimized to "return 0;" on the tree
level.
char *f(char *x)
{
char *ret = (char*)0;
if( x > (char*)1 ) {
if(x)
return (char*)0;
}
return ret;
}
--
Summary: [tree-ssa] return statements are not combined on the
tree level
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Keywords: pessimizes-code, memory-hog, compile-time-hog, TREE
Severity: enhancement
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15268