Messages in this thread | | | From | David Laight <> | Subject | RE: [PATCH v5] x86: use builtins to read eflags | Date | Fri, 18 Mar 2022 22:36:48 +0000 |
| |
From: Segher Boessenkool > Sent: 18 March 2022 22:09 ... > It generally is a very good idea to > have a redzone though, without it you pay much more than necessary for > frame setup and teardown in leaf functions (similar to some of what the > misnamed "shrink-wrapping" optimisation does, but the two are mostly > independent, the benefits add up).
Are there really leaf functions that need to spill data to stack where the cost of setting up a stack frame is significant?
I'd have thought that was relatively rare.
David
- Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)
| |