Re: [PATCH] i386: Use const reference of struct ix86_frame to avoid copy

2018-01-27 Thread Uros Bizjak
On Sat, Jan 27, 2018 at 12:42 AM, H.J. Lu wrote: > On Thu, Jan 18, 2018 at 12:23 AM, Uros Bizjak wrote: >> On Wed, Jan 17, 2018 at 5:00 PM, H.J. Lu wrote: >>> We can use const reference of struct ix86_frame to avoid making a local >>> copy of ix86_frame. ix86_expand_epilogue makes a local copy

Re: [PATCH] i386: Use const reference of struct ix86_frame to avoid copy

2018-01-26 Thread H.J. Lu
On Thu, Jan 18, 2018 at 12:23 AM, Uros Bizjak wrote: > On Wed, Jan 17, 2018 at 5:00 PM, H.J. Lu wrote: >> We can use const reference of struct ix86_frame to avoid making a local >> copy of ix86_frame. ix86_expand_epilogue makes a local copy of struct >> ix86_frame and uses the reg_save_offset fi

Re: [PATCH] i386: Use const reference of struct ix86_frame to avoid copy

2018-01-18 Thread Uros Bizjak
On Wed, Jan 17, 2018 at 5:00 PM, H.J. Lu wrote: > We can use const reference of struct ix86_frame to avoid making a local > copy of ix86_frame. ix86_expand_epilogue makes a local copy of struct > ix86_frame and uses the reg_save_offset field as a local variable. This > patch uses a separate loca

[PATCH] i386: Use const reference of struct ix86_frame to avoid copy

2018-01-17 Thread H.J. Lu
We can use const reference of struct ix86_frame to avoid making a local copy of ix86_frame. ix86_expand_epilogue makes a local copy of struct ix86_frame and uses the reg_save_offset field as a local variable. This patch uses a separate local variable for reg_save_offset. Tested on x86-64 with ad