i386: Use reference of struct ix86_frame to avoid copy
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 6 Nov 2017 23:04:15 +0000 (23:04 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 6 Nov 2017 23:04:15 +0000 (15:04 -0800)
commit9f8760ed72603aa2abdbf5b83f74cc5737da2a43
treedf038db50d2574619f89cd2d3ac6d2d643462d51
parent53d855e09df135ea735178521cc7c4cfbfb8a485
i386: Use reference of struct ix86_frame to avoid copy

When there is no need to make a copy of ix86_frame, we can use reference
of struct ix86_frame to avoid copy.

Tested on x86-64.

* config/i386/i386.c (ix86_can_use_return_insn_p): Use reference
of struct ix86_frame.
(ix86_initial_elimination_offset): Likewise.
(ix86_expand_split_stack_prologue): Likewise.

From-SVN: r254480
gcc/ChangeLog
gcc/config/i386/i386.c