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
484c3924
Commit
484c3924
authored
Mar 11, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(jump_optimize): Delete REG_LABEL note if label no longer in insn.
From-SVN: r6745
parent
d18225c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
gcc/jump.c
+12
-2
No files found.
gcc/jump.c
View file @
484c3924
...
...
@@ -143,7 +143,7 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
int
noop_moves
;
int
after_regscan
;
{
register
rtx
insn
,
next
;
register
rtx
insn
,
next
,
note
;
int
changed
;
int
first
=
1
;
int
max_uid
=
0
;
...
...
@@ -151,7 +151,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
cross_jump_death_matters
=
(
cross_jump
==
2
);
/* Initialize LABEL_NUSES and JUMP_LABEL fields. */
/* Initialize LABEL_NUSES and JUMP_LABEL fields. Delete any REG_LABEL
notes whose labels don't occur in the insn any more. */
for
(
insn
=
f
;
insn
;
insn
=
NEXT_INSN
(
insn
))
{
...
...
@@ -159,6 +160,15 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
LABEL_NUSES
(
insn
)
=
(
LABEL_PRESERVE_P
(
insn
)
!=
0
);
else
if
(
GET_CODE
(
insn
)
==
JUMP_INSN
)
JUMP_LABEL
(
insn
)
=
0
;
else
if
(
GET_CODE
(
insn
)
==
INSN
||
GET_CODE
(
insn
)
==
CALL_INSN
)
for
(
note
=
REG_NOTES
(
insn
);
note
;
note
=
next
)
{
next
=
XEXP
(
note
,
1
);
if
(
REG_NOTE_KIND
(
note
)
==
REG_LABEL
&&
!
reg_mentioned_p
(
XEXP
(
note
,
0
),
PATTERN
(
insn
)))
remove_note
(
insn
,
note
);
}
if
(
INSN_UID
(
insn
)
>
max_uid
)
max_uid
=
INSN_UID
(
insn
);
}
...
...
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