This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
function_invariant_p versus rtx_varies_p
- To: gcc at gcc dot gnu dot org
- Subject: function_invariant_p versus rtx_varies_p
- From: John Wehle <john at feith dot com>
- Date: Thu, 14 Sep 2000 16:52:16 -0400 (EDT)
function_invariant_p has the comment:
/* Return nonzero if the rtx X is invariant over the current function. */
rtx_varies_p has the comment:
/* Return 1 if X has a value that can vary even between two
executions of the program. 0 means X can be compared reliably
against certain constants or near-constants.
The frame pointer and the arg pointer are considered constant. */
There seems to be a fair amount of overlap between these two functions.
Any obvious reason not to replace uses of function_invariant_p with
rtx_varies_p and kill function_invariant_p?
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------