Closed
Bug 1850951
Opened 2 years ago
Closed 2 years ago
Avoid redundant initialisation of large buffer under -ftrivial-auto-var-init
Categories
(Firefox Build System :: General, task)
Firefox Build System
General
Tracking
(firefox119 fixed)
RESOLVED
FIXED
119 Branch
| Tracking | Status | |
|---|---|---|
| firefox119 | --- | fixed |
People
(Reporter: sergesanspaille, Assigned: sergesanspaille)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When a buffer is declared inside a loop and the compiler generates initialization code for it through -ftrivial-auto-var-init, the compiler can move the stack allocation outside the loop, but to the memory initialization (this would change the scope of the initialization).
This implies an extra overhead that we may not want to pay. Declaring the buffer in the outer scope of the loop is enough to initialize the buffer only once.
| Assignee | ||
Comment 1•2 years ago
|
||
Pushed by sguelton@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cf7f0013cf6d
Avoid redundant initialisation of large buffer under -ftrivial-auto-var-init r=emilio
Comment 3•2 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 2 years ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•