diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-10 16:19:23 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-10 16:19:23 +0000 |
commit | e8b0314a583b028ad2d6508b455e33f5787bffe1 (patch) | |
tree | 0a912d382c9a09330094df197632485b07733b76 /gcc/rtlanal.c | |
parent | 68a57628f482c75003abfc77b5c2a3be029668fa (diff) | |
download | gcc-e8b0314a583b028ad2d6508b455e33f5787bffe1.zip gcc-e8b0314a583b028ad2d6508b455e33f5787bffe1.tar.gz gcc-e8b0314a583b028ad2d6508b455e33f5787bffe1.tar.bz2 |
Make get_call_rtx_from take a const rtx_insn *
Only one caller (in dwarf2out.c) was preventing get_call_rtx_from
from taking an rtx_insn *. Since that caller just passes a PATTERN,
it's a trivial change to make.
2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
* rtlanal.c (get_call_rtx_from): Likewise.
* dwarf2out.c (dwarf2out_var_location): Pass the insn rather
than the pattern to get_call_rtx_from.
* config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
an rtx_insn * instead of an rtx.
* config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
From-SVN: r275593
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 3dcdc84..dfc6fe2 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -811,10 +811,9 @@ rtx_addr_varies_p (const_rtx x, bool for_alias) /* Return the CALL in X if there is one. */ rtx -get_call_rtx_from (rtx x) +get_call_rtx_from (const rtx_insn *insn) { - if (INSN_P (x)) - x = PATTERN (x); + rtx x = PATTERN (insn); if (GET_CODE (x) == PARALLEL) x = XVECEXP (x, 0, 0); if (GET_CODE (x) == SET) |