function_invariant_p versus rtx_varies_p

John Wehle john@feith.com
Thu Sep 14 13:52:00 GMT 2000


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  |                         |
-------------------------------------------------------------------------



More information about the Gcc mailing list