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
c160c628
Commit
c160c628
authored
Mar 22, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r571
parent
13a07c71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
7 deletions
+45
-7
gcc/loop.c
+45
-7
No files found.
gcc/loop.c
View file @
c160c628
...
@@ -1458,6 +1458,34 @@ rtx_equal_for_loop_p (x, y, movables)
...
@@ -1458,6 +1458,34 @@ rtx_equal_for_loop_p (x, y, movables)
return
1
;
return
1
;
}
}
/* If X contains any LABEL_REF's, add REG_LABEL notes for them to all
insns in INSNS which use thet reference. */
static
void
add_label_notes
(
x
,
insns
)
rtx
x
;
rtx
insns
;
{
enum
rtx_code
code
=
GET_CODE
(
x
);
int
i
;
char
*
fmt
;
rtx
insn
;
if
(
code
==
LABEL_REF
)
{
for
(
insn
=
insns
;
insn
;
insn
=
NEXT_INSN
(
insn
))
if
(
reg_mentioned_p
(
XEXP
(
x
,
0
),
insn
))
REG_NOTES
(
insn
)
=
gen_rtx
(
EXPR_LIST
,
REG_LABEL
,
XEXP
(
x
,
0
),
REG_NOTES
(
insn
));
return
;
}
fmt
=
GET_RTX_FORMAT
(
code
);
for
(
i
=
GET_RTX_LENGTH
(
code
)
-
1
;
i
>=
0
;
i
--
)
if
(
fmt
[
i
]
==
'e'
)
add_label_notes
(
XEXP
(
x
,
i
),
insns
);
}
/* Scan MOVABLES, and move the insns that deserve to be moved.
/* Scan MOVABLES, and move the insns that deserve to be moved.
If two matching movables are combined, replace one reg with the
If two matching movables are combined, replace one reg with the
other throughout. */
other throughout. */
...
@@ -1635,10 +1663,12 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs)
...
@@ -1635,10 +1663,12 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs)
start_sequence
();
start_sequence
();
emit_move_insn
(
m
->
set_dest
,
m
->
set_src
);
emit_move_insn
(
m
->
set_dest
,
m
->
set_src
);
temp
=
ge
n_sequence
();
temp
=
ge
t_insns
();
end_sequence
();
end_sequence
();
i1
=
emit_insn_before
(
temp
,
loop_start
);
add_label_notes
(
m
->
set_src
,
temp
);
i1
=
emit_insns_before
(
temp
,
loop_start
);
if
(
!
find_reg_note
(
i1
,
REG_EQUAL
,
0
))
if
(
!
find_reg_note
(
i1
,
REG_EQUAL
,
0
))
REG_NOTES
(
i1
)
REG_NOTES
(
i1
)
=
gen_rtx
(
EXPR_LIST
,
=
gen_rtx
(
EXPR_LIST
,
...
@@ -4504,11 +4534,19 @@ update_giv_derive (p)
...
@@ -4504,11 +4534,19 @@ update_giv_derive (p)
be able to compute a compensation. */
be able to compute a compensation. */
else
if
(
biv
->
insn
==
p
)
else
if
(
biv
->
insn
==
p
)
{
{
if
(
biv
->
mult_val
==
const1_rtx
tem
=
0
;
&&
(
tem
=
simplify_giv_expr
(
gen_rtx
(
MULT
,
giv
->
mode
,
biv
->
add_val
,
if
(
biv
->
mult_val
==
const1_rtx
)
giv
->
mult_val
),
tem
=
simplify_giv_expr
(
gen_rtx
(
MULT
,
giv
->
mode
,
&
dummy
)))
biv
->
add_val
,
giv
->
mult_val
),
&
dummy
);
if
(
tem
&&
giv
->
derive_adjustment
)
tem
=
simplify_giv_expr
(
gen_rtx
(
PLUS
,
giv
->
mode
,
tem
,
giv
->
derive_adjustment
),
&
dummy
);
if
(
tem
)
giv
->
derive_adjustment
=
tem
;
giv
->
derive_adjustment
=
tem
;
else
else
giv
->
cant_derive
=
1
;
giv
->
cant_derive
=
1
;
...
...
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