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.