aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra-int.h
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2019-07-31 07:33:11 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2019-07-31 07:33:11 +0000
commita25f3e8efbbc7182fa58c445574848a73856e9b4 (patch)
tree42b669136d615c100af11e64f472bc253a61d708 /gcc/lra-int.h
parent68c86af248f736a7fa3c8059c7df41ed5d6dff37 (diff)
downloadgcc-a25f3e8efbbc7182fa58c445574848a73856e9b4.zip
gcc-a25f3e8efbbc7182fa58c445574848a73856e9b4.tar.gz
gcc-a25f3e8efbbc7182fa58c445574848a73856e9b4.tar.bz2
Make lra use per-alternative earlyclobber info
lra_insn_reg and lra_operand_data have both a bitmask of earlyclobber alternatives and an overall boolean. The danger is that we then test the overall boolean when really we should be testing for a particular alternative. This patch gets rid of the boolean and tests the mask against zero when we really do need to test "any alternative might be earlyclobber". (I think the only instance of that is the LRA_UNKNOWN_ALT handling in lra-lives.c:reg_early_clobber_p.) This is needed (and tested) by an upcoming SVE patch. 2019-07-31 Richard Sandiford <richard.sandiford@arm.com> gcc/ * lra-int.h (lra_operand_data): Remove early_clobber field. (lra_insn_reg): Likewise. * lra.c (debug_operand_data): Update accordingly. (setup_operand_alternative): Likewise. (new_insn_reg): Likewise. Remove early_clobber parameter. (collect_non_operand_hard_regs): Update call accordingly. Don't assign to lra_insn_reg::early_clobber. (add_regs_to_insn_regno_info): Remove early_clobber parameter and update calls to new_insn_reg. (lra_update_insn_regno_info): Update calls accordingly. * lra-constraints.c (update_and_check_small_class_inputs): Take the alternative number as a parameter and test whether the operand is earlyclobbered in that particular alternative. (process_alt_operands): Update call accordingly. Use per-alternative checks for earyclobber here too. * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts against zero for IRA_UNKNOWN_ALT. From-SVN: r273921
Diffstat (limited to 'gcc/lra-int.h')
-rw-r--r--gcc/lra-int.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/gcc/lra-int.h b/gcc/lra-int.h
index f8db969..a87a51e 100644
--- a/gcc/lra-int.h
+++ b/gcc/lra-int.h
@@ -142,10 +142,6 @@ struct lra_operand_data
unsigned int strict_low : 1;
/* True if the operand is an operator. */
unsigned int is_operator : 1;
- /* True if there is an early clobber alternative for this operand.
- This field is set up every time when corresponding
- operand_alternative in lra_static_insn_data is set up. */
- unsigned int early_clobber : 1;
/* True if the operand is an address. */
unsigned int is_address : 1;
};
@@ -164,9 +160,6 @@ struct lra_insn_reg
/* True if the reg is accessed through a subreg and the subreg is
just a part of the register. */
unsigned int subreg_p : 1;
- /* True if there is an early clobber alternative for this
- operand. */
- unsigned int early_clobber : 1;
/* True if the reg is clobber highed by the operand. */
unsigned int clobber_high : 1;
/* The corresponding regno of the register. */