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
db2f7559
Commit
db2f7559
authored
Jun 25, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(final_giv_value): Verify that bl->initial_value is
invariant before trying to use it. From-SVN: r14323
parent
f9317f0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
gcc/unroll.c
+6
-1
No files found.
gcc/unroll.c
View file @
db2f7559
...
...
@@ -3205,9 +3205,14 @@ final_giv_value (v, loop_start, loop_end)
determine whether giv's are replaceable so that we can use the
biv value here if it is not eliminable. */
/* We are emitting code after the end of the loop, so we must make
sure that bl->initial_value is still valid then. It will still
be valid if it is invariant. */
increment
=
biv_total_increment
(
bl
,
loop_start
,
loop_end
);
if
(
increment
&&
invariant_p
(
increment
))
if
(
increment
&&
invariant_p
(
increment
)
&&
invariant_p
(
bl
->
initial_value
))
{
/* Can calculate the loop exit value of its biv as
(loop_n_iterations * increment) + initial_value */
...
...
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