aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.h
diff options
context:
space:
mode:
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>2017-06-15 14:17:04 +0000
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2017-06-15 14:17:04 +0000
commit55dabf65f039c3a5635f01dccb9e4de767f89323 (patch)
tree997bf538cb00c91180c172e6ee99ad8f3b83e5b2 /gcc/emit-rtl.h
parent61f5d85294a6a2757a1ab870c6f335e092c0c83a (diff)
downloadgcc-55dabf65f039c3a5635f01dccb9e4de767f89323.zip
gcc-55dabf65f039c3a5635f01dccb9e4de767f89323.tar.gz
gcc-55dabf65f039c3a5635f01dccb9e4de767f89323.tar.bz2
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 (); From-SVN: r249223
Diffstat (limited to 'gcc/emit-rtl.h')
-rw-r--r--gcc/emit-rtl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/emit-rtl.h b/gcc/emit-rtl.h
index da60a2d..b455b4c 100644
--- a/gcc/emit-rtl.h
+++ b/gcc/emit-rtl.h
@@ -267,7 +267,7 @@ struct GTY(()) rtl_data {
/* Nonzero if function being compiled doesn't contain any calls
(ignoring the prologue and epilogue). This is set prior to
- local register allocation and is valid for the remaining
+ register allocation in IRA and is valid for the remaining
compiler passes. */
bool is_leaf;