diff options
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 93833a3..f0dc512 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1846,29 +1846,6 @@ find_regno_fusage (const_rtx insn, enum rtx_code code, unsigned int regno) return 0; } -/* Return true if INSN is a call to a pure function. */ - -int -pure_call_p (const_rtx insn) -{ - const_rtx link; - - if (!CALL_P (insn) || ! CONST_OR_PURE_CALL_P (insn)) - return 0; - - /* Look for the note that differentiates const and pure functions. */ - for (link = CALL_INSN_FUNCTION_USAGE (insn); link; link = XEXP (link, 1)) - { - rtx u, m; - - if (GET_CODE (u = XEXP (link, 0)) == USE - && MEM_P (m = XEXP (u, 0)) && GET_MODE (m) == BLKmode - && GET_CODE (XEXP (m, 0)) == SCRATCH) - return 1; - } - - return 0; -} /* Remove register note NOTE from the REG_NOTES of INSN. */ |