diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-07-31 08:25:56 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-07-31 08:25:56 +0000 |
commit | f33a8d10d239ec37b3d84cdb6fec0cd45b250df6 (patch) | |
tree | c2be35a0962a6d94218f3189fdbf08361a403843 /gcc/ira.c | |
parent | bfa2ebe3d7f83bf8d38b99e4015510505ef164ea (diff) | |
download | gcc-f33a8d10d239ec37b3d84cdb6fec0cd45b250df6.zip gcc-f33a8d10d239ec37b3d84cdb6fec0cd45b250df6.tar.gz gcc-f33a8d10d239ec37b3d84cdb6fec0cd45b250df6.tar.bz2 |
ira.c (insn_contains_asm_1, [...]): Delete.
gcc/
* ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
(compute_regs_asm_clobbered): Use extract_asm_operands instead.
From-SVN: r213318
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -2221,25 +2221,6 @@ ira_bad_reload_regno (int regno, rtx in, rtx out) || ira_bad_reload_regno_1 (regno, out)); } -/* Return TRUE if *LOC contains an asm. */ -static int -insn_contains_asm_1 (rtx *loc, void *data ATTRIBUTE_UNUSED) -{ - if ( !*loc) - return FALSE; - if (GET_CODE (*loc) == ASM_OPERANDS) - return TRUE; - return FALSE; -} - - -/* Return TRUE if INSN contains an ASM. */ -static bool -insn_contains_asm (rtx insn) -{ - return for_each_rtx (&insn, insn_contains_asm_1, NULL); -} - /* Add register clobbers from asm statements. */ static void compute_regs_asm_clobbered (void) @@ -2253,7 +2234,7 @@ compute_regs_asm_clobbered (void) { df_ref def; - if (insn_contains_asm (insn)) + if (NONDEBUG_INSN_P (insn) && extract_asm_operands (PATTERN (insn))) FOR_EACH_INSN_DEF (def, insn) { unsigned int dregno = DF_REF_REGNO (def); |