Cache the set of EH_RETURN_DATA_REGNOsmastertrunk
commit7f35863ebbf7ba63e2f075edfbec105de272578a
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 21 May 2024 09:21:16 +0000 (21 10:21 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 21 May 2024 09:21:16 +0000 (21 10:21 +0100)
tree9ae222528599c80fb270c37cbd4f3d4f0529f223
parent7b215c867629e095a4ac403bd026b6eb293962b4
Cache the set of EH_RETURN_DATA_REGNOs

While reviewing Andrew's fix for PR114843, it seemed like it would
be convenient to have a HARD_REG_SET of EH_RETURN_DATA_REGNOs.
This patch adds one and uses it to simplify a couple of use sites.

gcc/
* hard-reg-set.h (target_hard_regs::x_eh_return_data_regs): New field.
(eh_return_data_regs): New macro.
* reginfo.cc (init_reg_sets_1): Initialize x_eh_return_data_regs.
* df-scan.cc (df_get_exit_block_use_set): Use it.
* ira-lives.cc (process_out_of_region_eh_regs): Likewise.
gcc/df-scan.cc
gcc/hard-reg-set.h
gcc/ira-lives.cc
gcc/reginfo.cc