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
3c7d7a4a
Commit
3c7d7a4a
authored
Nov 15, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(delete_insn): Delete labels in ADDR_VECs and
ADDR_DIFF_VECs if their use count becomes zero. From-SVN: r8439
parent
b2a80c0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
gcc/jump.c
+18
-0
No files found.
gcc/jump.c
View file @
3c7d7a4a
...
...
@@ -3375,6 +3375,24 @@ delete_insn (insn)
return
next
;
}
/* Likewise if we're deleting a dispatch table. */
if
(
GET_CODE
(
insn
)
==
JUMP_INSN
&&
(
GET_CODE
(
PATTERN
(
insn
))
==
ADDR_VEC
||
GET_CODE
(
PATTERN
(
insn
))
==
ADDR_DIFF_VEC
))
{
rtx
pat
=
PATTERN
(
insn
);
int
i
,
diff_vec_p
=
GET_CODE
(
pat
)
==
ADDR_DIFF_VEC
;
int
len
=
XVECLEN
(
pat
,
diff_vec_p
);
for
(
i
=
0
;
i
<
len
;
i
++
)
if
(
--
LABEL_NUSES
(
XEXP
(
XVECEXP
(
pat
,
diff_vec_p
,
i
),
0
))
==
0
)
delete_insn
(
XEXP
(
XVECEXP
(
pat
,
diff_vec_p
,
i
),
0
));
while
(
next
&&
INSN_DELETED_P
(
next
))
next
=
NEXT_INSN
(
next
);
return
next
;
}
while
(
prev
&&
(
INSN_DELETED_P
(
prev
)
||
GET_CODE
(
prev
)
==
NOTE
))
prev
=
PREV_INSN
(
prev
);
...
...
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