Skip to content

Commit

Permalink
doc: target.def (flags_regnum): Also mention effect on delay slot fil…
Browse files Browse the repository at this point in the history
…ling.

* target.def (flags_regnum): Also mention effect on delay slot filling.
* doc/tm.texi: Regenerate.

Previously only mentioned an effect on compare elimination.
  • Loading branch information
hpataxisdotcom committed Jan 24, 2020
1 parent a0b935a commit 9adea93
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2020-01-24 Hans-Peter Nilsson <[email protected]>

* target.def (flags_regnum): Also mention effect on delay slot filling.
* doc/tm.texi: Regenerate.

2020-01-23 Jeff Law <[email protected]>

* config/h8300/h8300.c (h8300_option_override): Fix diagnostic text.
Expand Down
4 changes: 3 additions & 1 deletion gcc/doc/tm.texi
Original file line number Diff line number Diff line change
Expand Up @@ -6532,7 +6532,9 @@ returns @code{VOIDmode}.
@end deftypefn

@deftypevr {Target Hook} {unsigned int} TARGET_FLAGS_REGNUM
If the target has a dedicated flags register, and it needs to use the post-reload comparison elimination pass, then this value should be set appropriately.
If the target has a dedicated flags register, and it needs to use the
post-reload comparison elimination pass, or the delay slot filler pass,
then this value should be set appropriately.
@end deftypevr

@node Costs
Expand Down
8 changes: 4 additions & 4 deletions gcc/target.def
Original file line number Diff line number Diff line change
Expand Up @@ -3716,10 +3716,10 @@ of spill registers and print a fatal error message.",
target is constrainted to use post-reload comparison elimination. */
DEFHOOKPOD
(flags_regnum,
"If the target has a dedicated flags register, and it needs to use the\
post-reload comparison elimination pass, then this value should be set\
appropriately.",
unsigned int, INVALID_REGNUM)
"If the target has a dedicated flags register, and it needs to use the\n\
post-reload comparison elimination pass, or the delay slot filler pass,\n\
then this value should be set appropriately.",
unsigned int, INVALID_REGNUM)

/* Compute a (partial) cost for rtx X. Return true if the complete
cost has been computed, and false if subexpressions should be
Expand Down

0 comments on commit 9adea93

Please sign in to comment.