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
00c0c63c
Commit
00c0c63c
authored
Oct 20, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(loop_iterations): Move all failure exits after the computation of final_value.
From-SVN: r8324
parent
2c14c928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
23 deletions
+22
-23
gcc/unroll.c
+22
-23
No files found.
gcc/unroll.c
View file @
00c0c63c
...
@@ -3155,28 +3155,6 @@ loop_iterations (loop_start, loop_end)
...
@@ -3155,28 +3155,6 @@ loop_iterations (loop_start, loop_end)
/* iteration_info already printed a message. */
/* iteration_info already printed a message. */
return
0
;
return
0
;
if
(
increment
==
0
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Increment value can't be calculated.
\n
"
);
return
0
;
}
if
(
GET_CODE
(
increment
)
!=
CONST_INT
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Increment value not constant.
\n
"
);
return
0
;
}
if
(
GET_CODE
(
initial_value
)
!=
CONST_INT
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Initial value not constant.
\n
"
);
return
0
;
}
/* If the comparison value is an invariant register, then try to find
/* If the comparison value is an invariant register, then try to find
its value from the insns before the start of the loop. */
its value from the insns before the start of the loop. */
...
@@ -3225,7 +3203,28 @@ loop_iterations (loop_start, loop_end)
...
@@ -3225,7 +3203,28 @@ loop_iterations (loop_start, loop_end)
loop_increment
=
increment
;
loop_increment
=
increment
;
loop_final_value
=
final_value
;
loop_final_value
=
final_value
;
if
(
final_value
==
0
)
if
(
increment
==
0
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Increment value can't be calculated.
\n
"
);
return
0
;
}
else
if
(
GET_CODE
(
increment
)
!=
CONST_INT
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Increment value not constant.
\n
"
);
return
0
;
}
else
if
(
GET_CODE
(
initial_value
)
!=
CONST_INT
)
{
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
"Loop unrolling: Initial value not constant.
\n
"
);
return
0
;
}
else
if
(
final_value
==
0
)
{
{
if
(
loop_dump_stream
)
if
(
loop_dump_stream
)
fprintf
(
loop_dump_stream
,
fprintf
(
loop_dump_stream
,
...
...
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