Re: [x86] Cache result of expensive_function_p between frame layouts

2019-09-30 Thread Jan Hubicka
> ix86_compute_frame_layout sets use_fast_prologue_epilogue if > the function isn't more expensive than a certain threshold, > where the threshold depends on the number of saved registers. > However, the RA is allowed to insert and delete instructions > as it goes along, which can change whether th

[x86] Cache result of expensive_function_p between frame layouts

2019-09-30 Thread Richard Sandiford
ix86_compute_frame_layout sets use_fast_prologue_epilogue if the function isn't more expensive than a certain threshold, where the threshold depends on the number of saved registers. However, the RA is allowed to insert and delete instructions as it goes along, which can change whether this thresho