This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r249223 - in /trunk/gcc: ChangeLog emit-rtl.h
- From: ramana at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 15 Jun 2017 14:17:05 -0000
- Subject: r249223 - in /trunk/gcc: ChangeLog emit-rtl.h
Author: ramana
Date: Thu Jun 15 14:17:04 2017
New Revision: 249223
URL: https://gcc.gnu.org/viewcvs?rev=249223&root=gcc&view=rev
Log:
Update comment about is_leaf
crtl->is_leaf has a comment above it referring to "Local Register
Allocation". However this is set by IRA and not LRA since the meaning
of Local Register Allocator in GCC has changed quite drastically since
1999 when this comment was introduced above the variable
current_function_is_leaf. From memory gcc in those days had "local"
and "global" register allocation - however all of this has changed
quite a bit drastically since.
This patch merely updates the comment as I did some head scratching
this morning about how this could be set before Local Register
Allocator especially given the comment in ira.c as below.
/* Determine if the current function is a leaf before running IRA
since this can impact optimizations done by the prologue and
epilogue thus changing register elimination offsets. */
crtl->is_leaf = leaf_function_p ();
Modified:
trunk/gcc/ChangeLog
trunk/gcc/emit-rtl.h