summaryrefslogtreecommitdiff
path: root/gcc/output.h
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-20 21:48:36 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-20 21:48:36 +0000
commit16afa8ae1933c570085475a7ea0fbdf9b8880b47 (patch)
treeb5aed08c2aba5538d50f0915cdd9050b95ec600d /gcc/output.h
parentd65b8df84253ce7cbef6fea4afb9af5b870e1751 (diff)
downloadgcc-16afa8ae1933c570085475a7ea0fbdf9b8880b47.tar.gz
PR rtl-optimization/23898
* output.h (get_attr_min_length): Declare. * final.c (get_attr_length_1): New function, broken out of: (get_attr_length). (get_attr_min_length): New function. * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it. (duplicate_computed_gotos): Likewise. * genattr.c (insn_min_length): Generate declaration. * genattrtab.c (min_fn, min_attr_value): New functions. (make_length_attrs): Generate insn_min_length. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104468 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/output.h')
-rw-r--r--gcc/output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/output.h b/gcc/output.h
index c0dfb5fd1c4..cb8d8c04f7d 100644
--- a/gcc/output.h
+++ b/gcc/output.h
@@ -49,6 +49,10 @@ extern void init_insn_lengths (void);
get its actual length. Otherwise, get its maximum length. */
extern int get_attr_length (rtx);
+/* Obtain the current length of an insn. If branch shortening has been done,
+ get its actual length. Otherwise, get its minimum length. */
+extern int get_attr_min_length (rtx);
+
/* Make a pass over all insns and compute their actual lengths by shortening
any branches of variable length if possible. */
extern void shorten_branches (rtx);