aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2018-01-23 19:30:32 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2018-01-23 11:30:32 -0800
commit56dbd05b0ed265ec37f66234487aaad6e330c7ce (patch)
tree8753b6e58fcf8b59cdc63f9748f6f99d97c1b9dd /gcc/predict.c
parentf59986b285e3dff07f847c5a680f6f9e0b9520f0 (diff)
downloadgcc-56dbd05b0ed265ec37f66234487aaad6e330c7ce.zip
gcc-56dbd05b0ed265ec37f66234487aaad6e330c7ce.tar.gz
gcc-56dbd05b0ed265ec37f66234487aaad6e330c7ce.tar.bz2
i386: Use const reference of struct ix86_frame to avoid copy
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 ada. PR target/83905 * config/i386/i386.c (ix86_expand_prologue): Use cost reference of struct ix86_frame. (ix86_expand_epilogue): Likewise. Add a local variable for the reg_save_offset field in struct ix86_frame. From-SVN: r256996
Diffstat (limited to 'gcc/predict.c')
0 files changed, 0 insertions, 0 deletions