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
af198097
Commit
af198097
authored
May 25, 2000
by
J"orn Rennecke
Committed by
Joern Rennecke
May 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (basic_induction_var): Avoid double recording of an increment.
From-SVN: r34153
parent
73bb9454
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
+11
-1
gcc/ChangeLog
+4
-0
gcc/loop.c
+7
-1
No files found.
gcc/ChangeLog
View file @
af198097
Thu
May
25
02
:
27
:
22
2000
J
"orn Rennecke <amylaar@cygnus.co.uk>
* loop.c (basic_induction_var): Avoid double recording of an increment.
Thu May 25 02:19:27 2000 J"
orn
Rennecke
<
amylaar
@cygnus
.
co
.
uk
>
Thu May 25 02:19:27 2000 J"
orn
Rennecke
<
amylaar
@cygnus
.
co
.
uk
>
*
Back
out
this
patch
:
*
Back
out
this
patch
:
gcc/loop.c
View file @
af198097
...
@@ -5995,6 +5995,11 @@ basic_induction_var (loop, x, mode, dest_reg, p, inc_val, mult_val, location)
...
@@ -5995,6 +5995,11 @@ basic_induction_var (loop, x, mode, dest_reg, p, inc_val, mult_val, location)
/* If this register is assigned in a previous insn, look at its
/* If this register is assigned in a previous insn, look at its
source, but don't go outside the loop or past a label. */
source, but don't go outside the loop or past a label. */
/* If this sets a register to itself, we would repeat any previous
biv increment if we applied this strategy blindly. */
if
(
rtx_equal_p
(
dest_reg
,
x
))
return
0
;
insn
=
p
;
insn
=
p
;
while
(
1
)
while
(
1
)
{
{
...
@@ -6066,7 +6071,8 @@ basic_induction_var (loop, x, mode, dest_reg, p, inc_val, mult_val, location)
...
@@ -6066,7 +6071,8 @@ basic_induction_var (loop, x, mode, dest_reg, p, inc_val, mult_val, location)
if
(
insn
)
if
(
insn
)
set
=
single_set
(
insn
);
set
=
single_set
(
insn
);
if
(
set
&&
SET_DEST
(
set
)
==
XEXP
(
x
,
0
)
if
(
!
rtx_equal_p
(
dest_reg
,
XEXP
(
x
,
0
))
&&
set
&&
SET_DEST
(
set
)
==
XEXP
(
x
,
0
)
&&
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
&&
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
&&
INTVAL
(
XEXP
(
x
,
1
))
>=
0
&&
INTVAL
(
XEXP
(
x
,
1
))
>=
0
&&
GET_CODE
(
SET_SRC
(
set
))
==
ASHIFT
&&
GET_CODE
(
SET_SRC
(
set
))
==
ASHIFT
...
...
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