diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-07-30 09:23:20 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2021-11-24 21:38:11 +0100 |
commit | 9e026da720091704ca0456d405f16a3bc5f3a799 (patch) | |
tree | 3a7f3baacd6108840078139ebf1b863db0089485 /gcc/cfgloop.c | |
parent | 5deacf6058d1bc7261a75c9fd1f116c4442e9e60 (diff) | |
download | gcc-9e026da720091704ca0456d405f16a3bc5f3a799.zip gcc-9e026da720091704ca0456d405f16a3bc5f3a799.tar.gz gcc-9e026da720091704ca0456d405f16a3bc5f3a799.tar.bz2 |
Reduce scope of a few 'class loop *loop' variables
Further clean-up after commit e41ba804ba5f5ca433e09238d561b1b4c8b10985
"Use range-based for loops for traversing loops". No functional change.
gcc/
* cfgloop.c (verify_loop_structure): Reduce scope of
'class loop *loop' variable.
* ipa-fnsummary.c (analyze_function_body): Likewise.
* loop-init.c (fix_loop_structure): Likewise.
* loop-invariant.c (calculate_loop_reg_pressure): Likewise.
* predict.c (predict_loops): Likewise.
* tree-loop-distribution.c (loop_distribution::execute): Likewise.
* tree-vectorizer.c (pass_vectorize::execute): Likewise.
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r-- | gcc/cfgloop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c index 20c24c1..3190d12 100644 --- a/gcc/cfgloop.c +++ b/gcc/cfgloop.c @@ -1398,7 +1398,6 @@ verify_loop_structure (void) { unsigned *sizes, i, j; basic_block bb, *bbs; - class loop *loop; int err = 0; edge e; unsigned num = number_of_loops (cfun); @@ -1689,7 +1688,7 @@ verify_loop_structure (void) for (; exit; exit = exit->next_e) eloops++; - for (loop = bb->loop_father; + for (class loop *loop = bb->loop_father; loop != e->dest->loop_father /* When a loop exit is also an entry edge which can happen when avoiding CFG manipulations |