[Bug rtl-optimization/109009] New: Shrink Wrap missed opportunity
jskumari at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 3 14:04:38 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109009
Bug ID: 109009
Summary: Shrink Wrap missed opportunity
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: jskumari at gcc dot gnu.org
Target Milestone: ---
The following test case does not get shrink wrapped:
void bar (void);
long
foo (long i, long cond)
{
if (cond)
bar ();
return i+1;
}
However, if we change the return statement from
return i+1;
to
return i;
then shrink wrapping kicks in.
More information about the Gcc-bugs
mailing list