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
e6f6eb29
Commit
e6f6eb29
authored
Jul 28, 1993
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(strength_reduce): Don't ignore a giv that depends on a
reversed biv. From-SVN: r5025
parent
c70305f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
gcc/loop.c
+8
-1
No files found.
gcc/loop.c
View file @
e6f6eb29
...
...
@@ -3708,7 +3708,14 @@ strength_reduce (scan_start, end, loop_top, insn_count,
/* If an insn is not to be strength reduced, then set its ignore
flag, and clear all_reduced. */
if
(
v
->
lifetime
*
threshold
*
benefit
<
insn_count
)
/* A giv that depends on a reversed biv must be reduced if it is
used after the loop exit, otherwise, it would have the wrong
value after the loop exit. To make it simple, just reduce all
of such giv's whether or not we know they are used after the loop
exit. */
if
(
v
->
lifetime
*
threshold
*
benefit
<
insn_count
&&
!
bl
->
reversed
)
{
if
(
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