diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-09-13 10:37:49 -0700 |
commit | e252b51ccde010cbd2a146485d8045103cd99533 (patch) | |
tree | e060f101cdc32bf5e520de8e5275db9d4236b74c /gcc/store-motion.c | |
parent | f10c7c4596dda99d2ee872c995ae4aeda65adbdf (diff) | |
parent | 104c05c5284b7822d770ee51a7d91946c7e56d50 (diff) | |
download | gcc-e252b51ccde010cbd2a146485d8045103cd99533.zip gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.gz gcc-e252b51ccde010cbd2a146485d8045103cd99533.tar.bz2 |
Merge from trunk revision 104c05c5284b7822d770ee51a7d91946c7e56d50.
Diffstat (limited to 'gcc/store-motion.c')
-rw-r--r-- | gcc/store-motion.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/store-motion.c b/gcc/store-motion.c index f0401ca..dd61701 100644 --- a/gcc/store-motion.c +++ b/gcc/store-motion.c @@ -251,9 +251,7 @@ print_store_motion_mems (FILE * file) static bool store_ops_ok (const vec<rtx> &x, int *regs_set) { - unsigned int i; - rtx temp; - FOR_EACH_VEC_ELT (x, i, temp) + for (rtx temp : x) if (regs_set[REGNO (temp)]) return false; @@ -386,9 +384,7 @@ store_killed_in_insn (const_rtx x, const vec<rtx> &x_regs, /* But even a const call reads its parameters. Check whether the base of some of registers used in mem is stack pointer. */ - rtx temp; - unsigned int i; - FOR_EACH_VEC_ELT (x_regs, i, temp) + for (rtx temp : x_regs) if (may_be_sp_based_p (temp)) return true; @@ -1152,7 +1148,6 @@ one_store_motion_pass (void) /* Now compute kill & transp vectors. */ build_store_vectors (); - add_noreturn_fake_exit_edges (); connect_infinite_loops_to_exit (); edge_list = pre_edge_rev_lcm (num_stores, st_transp, st_avloc, |