aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-iv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/loop-iv.c')
-rw-r--r--gcc/loop-iv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/loop-iv.c b/gcc/loop-iv.c
index 82b329f..33be75a 100644
--- a/gcc/loop-iv.c
+++ b/gcc/loop-iv.c
@@ -1972,14 +1972,8 @@ simplify_using_initial_values (class loop *loop, enum rtx_code op, rtx *expr)
CLEAR_REG_SET (this_altered);
note_stores (insn, mark_altered, this_altered);
if (CALL_P (insn))
- {
- /* Kill all call clobbered registers. */
- unsigned int i;
- hard_reg_set_iterator hrsi;
- EXECUTE_IF_SET_IN_HARD_REG_SET (regs_invalidated_by_call,
- 0, i, hrsi)
- SET_REGNO_REG_SET (this_altered, i);
- }
+ /* Kill all call clobbered registers. */
+ IOR_REG_SET_HRS (this_altered, regs_invalidated_by_call);
if (suitable_set_for_replacement (insn, &dest, &src))
{