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
847dde95
Commit
847dde95
authored
Nov 21, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix consec_sets_giv bug.
From-SVN: r37619
parent
ce79b0ca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gcc/ChangeLog
+4
-0
gcc/loop.c
+7
-2
No files found.
gcc/ChangeLog
View file @
847dde95
2000-11-21 Bernd Schmidt <bernds@redhat.co.uk>
* loop.c (consec_sets_giv): If the reg we're examining is anything
but UNKNOWN_INDUCT, do nothing.
Reset the reg's type to UNKNOWN_INDUCT before returning.
Mostly from Vladimir Makarov (vmakarov@redhat.com)
* ia64.md (attr itanium_class): Define insn types as described in
Itanium docs.
...
...
gcc/loop.c
View file @
847dde95
...
...
@@ -6203,8 +6203,12 @@ consec_sets_giv (loop, first_benefit, p, src_reg, dest_reg,
general_induction_var below, so we can allocate it on our stack.
If this is a giv, our caller will replace the induct var entry with
a new induction structure. */
struct
induction
*
v
=
(
struct
induction
*
)
alloca
(
sizeof
(
struct
induction
));
struct
induction
*
v
;
if
(
REG_IV_TYPE
(
ivs
,
REGNO
(
dest_reg
))
!=
UNKNOWN_INDUCT
)
return
0
;
v
=
(
struct
induction
*
)
alloca
(
sizeof
(
struct
induction
));
v
->
src_reg
=
src_reg
;
v
->
mult_val
=
*
mult_val
;
v
->
add_val
=
*
add_val
;
...
...
@@ -6265,6 +6269,7 @@ consec_sets_giv (loop, first_benefit, p, src_reg, dest_reg,
}
}
REG_IV_TYPE
(
ivs
,
REGNO
(
dest_reg
))
=
UNKNOWN_INDUCT
;
*
last_consec_insn
=
p
;
return
v
->
benefit
;
}
...
...
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