aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mips.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2005-03-09 09:17:41 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2005-03-09 09:17:41 +0000
commit9b91f5445f8096caa7e7b523d5384b8633f1797b (patch)
tree3a33bb5452052831c979da7474495d34c10c47ba /gas/config/tc-mips.c
parent1e91584932efd70020c8c98037d0cb93a0552a20 (diff)
downloadfsf-binutils-gdb-9b91f5445f8096caa7e7b523d5384b8633f1797b.zip
fsf-binutils-gdb-9b91f5445f8096caa7e7b523d5384b8633f1797b.tar.gz
fsf-binutils-gdb-9b91f5445f8096caa7e7b523d5384b8633f1797b.tar.bz2
* config/tc-mips.c (append_insn): Remove now-redundant nops != 0
check from branch delay code. Remove unnecessary check for branches.
Diffstat (limited to 'gas/config/tc-mips.c')
-rw-r--r--gas/config/tc-mips.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 5a3deda..77b5535 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -2472,9 +2472,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
/* If we have seen .set volatile or .set nomove, don't
optimize. */
|| mips_opts.nomove != 0
- /* If we had to emit any NOP instructions, then we
- already know we can not swap. */
- || nops != 0
/* We can't swap if the previous instruction's position
is fixed. */
|| history[0].fixed_p
@@ -2536,11 +2533,6 @@ append_insn (struct mips_cl_insn *ip, expressionS *address_expr,
/* Itbl support may require additional care here. */
&& (prev_pinfo & INSN_COPROC_MEMORY_DELAY)
&& ! cop_mem_interlocks)
- /* We can not swap with a branch instruction. */
- || (prev_pinfo
- & (INSN_UNCOND_BRANCH_DELAY
- | INSN_COND_BRANCH_DELAY
- | INSN_COND_BRANCH_LIKELY))
/* We do not swap with a trap instruction, since it
complicates trap handlers to have the trap
instruction be in a delay slot. */