diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-09-09 17:59:54 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-09-09 17:59:54 +0000 |
commit | 75f4e3a1b322e16a1aca28bd0ced9af57cb0a683 (patch) | |
tree | 6d34be743bff9b04f48cceeea34a2fb06e2bba98 /gcc/ira-build.c | |
parent | a85796511b2b7985f79331c996761f7a87cb8116 (diff) | |
download | gcc-75f4e3a1b322e16a1aca28bd0ced9af57cb0a683.zip gcc-75f4e3a1b322e16a1aca28bd0ced9af57cb0a683.tar.gz gcc-75f4e3a1b322e16a1aca28bd0ced9af57cb0a683.tar.bz2 |
Tweak interface to ira-build.c:ior_hard_reg_conflicts
This patch makes ior_hard_reg_conflicts take a const_hard_reg_set
rather than a pointer, so that it can be passed a temporary object
in later patches.
2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
instead of a HARD_REG_SET *.
* ira-build.c (ior_hard_reg_conflicts): Likewise.
(ira_build): Update call accordingly.
* ira-emit.c (add_range_and_copies_from_move_list): Likewise.
From-SVN: r275535
Diffstat (limited to 'gcc/ira-build.c')
-rw-r--r-- | gcc/ira-build.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ira-build.c b/gcc/ira-build.c index 3170d7d..834bea7 100644 --- a/gcc/ira-build.c +++ b/gcc/ira-build.c @@ -614,15 +614,15 @@ merge_hard_reg_conflicts (ira_allocno_t from, ira_allocno_t to, /* Update hard register conflict information for all objects associated with A to include the regs in SET. */ void -ior_hard_reg_conflicts (ira_allocno_t a, HARD_REG_SET *set) +ior_hard_reg_conflicts (ira_allocno_t a, const_hard_reg_set set) { ira_allocno_object_iterator i; ira_object_t obj; FOR_EACH_ALLOCNO_OBJECT (a, obj, i) { - OBJECT_CONFLICT_HARD_REGS (obj) |= *set; - OBJECT_TOTAL_CONFLICT_HARD_REGS (obj) |= *set; + OBJECT_CONFLICT_HARD_REGS (obj) |= set; + OBJECT_TOTAL_CONFLICT_HARD_REGS (obj) |= set; } } @@ -3462,7 +3462,7 @@ ira_build (void) allocno crossing calls. */ FOR_EACH_ALLOCNO (a, ai) if (ALLOCNO_CALLS_CROSSED_NUM (a) != 0) - ior_hard_reg_conflicts (a, &call_used_reg_set); + ior_hard_reg_conflicts (a, call_used_reg_set); } if (internal_flag_ira_verbose > 2 && ira_dump_file != NULL) print_copies (ira_dump_file); |