Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
048c8616
Commit
048c8616
authored
Jun 15, 2002
by
Eric Botcazou
Committed by
Richard Henderson
Jun 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (for_each_insn_in_loop): Fix formatting and comments.
From-SVN: r54633
parent
0b0b0750
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
gcc/ChangeLog
+4
-0
gcc/loop.c
+6
-9
No files found.
gcc/ChangeLog
View file @
048c8616
2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
* loop.c (for_each_insn_in_loop): Fix formatting and comments.
2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
PR c/6677
PR c/6677
* convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
* convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
...
...
gcc/loop.c
View file @
048c8616
...
@@ -4247,8 +4247,8 @@ static rtx addr_placeholder;
...
@@ -4247,8 +4247,8 @@ static rtx addr_placeholder;
LOOP and INSN parameters pass MAYBE_MULTIPLE and NOT_EVERY_ITERATION to the
LOOP and INSN parameters pass MAYBE_MULTIPLE and NOT_EVERY_ITERATION to the
callback.
callback.
NOT_EVERY_ITERATION i
f current insn is not executed at least once for every
NOT_EVERY_ITERATION i
s 1 if current insn is not known to be executed at
loop iteration except for the last one.
l
east once for every l
oop iteration except for the last one.
MAYBE_MULTIPLE is 1 if current insn may be executed more than once for every
MAYBE_MULTIPLE is 1 if current insn may be executed more than once for every
loop iteration.
loop iteration.
...
@@ -4258,8 +4258,6 @@ for_each_insn_in_loop (loop, fncall)
...
@@ -4258,8 +4258,6 @@ for_each_insn_in_loop (loop, fncall)
struct
loop
*
loop
;
struct
loop
*
loop
;
loop_insn_callback
fncall
;
loop_insn_callback
fncall
;
{
{
/* This is 1 if current insn is not executed at least once for every loop
iteration. */
int
not_every_iteration
=
0
;
int
not_every_iteration
=
0
;
int
maybe_multiple
=
0
;
int
maybe_multiple
=
0
;
int
past_loop_latch
=
0
;
int
past_loop_latch
=
0
;
...
@@ -4271,8 +4269,7 @@ for_each_insn_in_loop (loop, fncall)
...
@@ -4271,8 +4269,7 @@ for_each_insn_in_loop (loop, fncall)
if
(
prev_nonnote_insn
(
loop
->
scan_start
)
!=
prev_nonnote_insn
(
loop
->
start
))
if
(
prev_nonnote_insn
(
loop
->
scan_start
)
!=
prev_nonnote_insn
(
loop
->
start
))
maybe_multiple
=
back_branch_in_range_p
(
loop
,
loop
->
scan_start
);
maybe_multiple
=
back_branch_in_range_p
(
loop
,
loop
->
scan_start
);
/* Scan through loop to find all possible bivs. */
/* Scan through loop and update NOT_EVERY_ITERATION and MAYBE_MULTIPLE. */
for
(
p
=
next_insn_in_loop
(
loop
,
loop
->
scan_start
);
for
(
p
=
next_insn_in_loop
(
loop
,
loop
->
scan_start
);
p
!=
NULL_RTX
;
p
!=
NULL_RTX
;
p
=
next_insn_in_loop
(
loop
,
p
))
p
=
next_insn_in_loop
(
loop
,
p
))
...
@@ -4329,9 +4326,9 @@ for_each_insn_in_loop (loop, fncall)
...
@@ -4329,9 +4326,9 @@ for_each_insn_in_loop (loop, fncall)
This can be any kind of jump, since we want to know if insns
This can be any kind of jump, since we want to know if insns
will be executed if the loop is executed. */
will be executed if the loop is executed. */
&&
!
(
JUMP_LABEL
(
p
)
==
loop
->
top
&&
!
(
JUMP_LABEL
(
p
)
==
loop
->
top
&&
((
NEXT_INSN
(
NEXT_INSN
(
p
))
==
loop
->
end
&&
((
NEXT_INSN
(
NEXT_INSN
(
p
))
==
loop
->
end
&&
any_uncondjump_p
(
p
))
&&
any_uncondjump_p
(
p
))
||
(
NEXT_INSN
(
p
)
==
loop
->
end
&&
any_condjump_p
(
p
)))))
||
(
NEXT_INSN
(
p
)
==
loop
->
end
&&
any_condjump_p
(
p
)))))
{
{
rtx
label
=
0
;
rtx
label
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment