public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103916] New: [meta-bug] -Os vs loop header copy
@ 2022-01-05 10:24 pinskia at gcc dot gnu.org
2022-01-05 11:02 ` [Bug tree-optimization/103916] " rguenth at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-01-05 10:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103916
Bug ID: 103916
Summary: [meta-bug] -Os vs loop header copy
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
There are a bunch of bugs related to -Os and the loop header copy pass not
happening so record them all in one place.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug tree-optimization/103916] [meta-bug] -Os vs loop header copy
2022-01-05 10:24 [Bug tree-optimization/103916] New: [meta-bug] -Os vs loop header copy pinskia at gcc dot gnu.org
@ 2022-01-05 11:02 ` rguenth at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-05 11:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103916
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2022-01-05
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Note the pass is run but we have
/* Avoid loop header copying when optimizing for size unless we can
determine that the loop condition is static in the first
iteration. */
if (optimize_loop_for_size_p (loop)
&& !loop->force_vectorize
&& !entry_loop_condition_is_static (loop, query))
guarding it where the optimize_loop_for_size_p is conservative to size for -Os.
We might want to use similar logic as unrolling to determine the size cost of
the BB peeling done (basically share it) and thus allow more cases.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-05 11:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-05 10:24 [Bug tree-optimization/103916] New: [meta-bug] -Os vs loop header copy pinskia at gcc dot gnu.org
2022-01-05 11:02 ` [Bug tree-optimization/103916] " rguenth at gcc dot gnu.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).