Re: [PATCH v6] x86-64: Find a scratch register for large model profiling

2024-02-05 Thread H.J. Lu
On Mon, Feb 5, 2024 at 10:01 AM Uros Bizjak wrote: > > On Mon, Feb 5, 2024 at 5:43 PM H.J. Lu wrote: > > > > Changes in v6: > > > > 1. Use ix86_save_reg and accessible_reg_set in > > x86_64_select_profile_regnum. > > 2. Construct a complete reg name in x86_function_profiler. > > > > Changes in v5

Re: [PATCH v6] x86-64: Find a scratch register for large model profiling

2024-02-05 Thread Uros Bizjak
On Mon, Feb 5, 2024 at 5:43 PM H.J. Lu wrote: > > Changes in v6: > > 1. Use ix86_save_reg and accessible_reg_set in > x86_64_select_profile_regnum. > 2. Construct a complete reg name in x86_function_profiler. > > Changes in v5: > > 1. Add pr113689-3.c. > 2. Use %r10 if ix86_profile_before_prologue

[PATCH v6] x86-64: Find a scratch register for large model profiling

2024-02-05 Thread H.J. Lu
Changes in v6: 1. Use ix86_save_reg and accessible_reg_set in x86_64_select_profile_regnum. 2. Construct a complete reg name in x86_function_profiler. Changes in v5: 1. Add pr113689-3.c. 2. Use %r10 if ix86_profile_before_prologue () return true. 3. Try a callee-saved register which has been sav