public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/42971] New: GCC cannot perform partial inlining
@ 2010-02-05 11:08 rguenth at gcc dot gnu dot org
2010-02-07 21:01 ` [Bug tree-optimization/42971] " pinskia at gcc dot gnu dot org
2010-07-31 22:15 ` hubicka at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-05 11:08 UTC (permalink / raw)
To: gcc-bugs
Inlining of guards is important for optimizing. Consider
int flag;
int foo (void)
{
if (!flag)
return 0;
...
}
we should be able to partially inline foo into its callers transforming
if (foo ())
{
...
}
else
{
...
}
to
if (!flag)
<ret> = 0;
else
<ret> = foo.clone();
if (<ret>)
{
...
}
else
{
...
}
to be able to perform optimizations across the path where foo.clone
is not executed.
--
Summary: GCC cannot perform partial inlining
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: tree-optimization
AssignedTo: hubicka at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42971
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-31 22:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-05 11:08 [Bug tree-optimization/42971] New: GCC cannot perform partial inlining rguenth at gcc dot gnu dot org
2010-02-07 21:01 ` [Bug tree-optimization/42971] " pinskia at gcc dot gnu dot org
2010-07-31 22:15 ` hubicka at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).