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
5e9e738c
Commit
5e9e738c
authored
May 01, 2000
by
Richard Henderson
Committed by
Richard Henderson
May 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* flow.c (propagate_one_insn): Mark sets even when the insn is dead.
From-SVN: r33564
parent
c4686982
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
gcc/ChangeLog
+2
-0
gcc/flow.c
+9
-5
No files found.
gcc/ChangeLog
View file @
5e9e738c
2000
-
04
-
30
Richard
Henderson
<
rth
@cygnus
.
com
>
2000
-
04
-
30
Richard
Henderson
<
rth
@cygnus
.
com
>
*
flow
.
c
(
propagate_one_insn
)
:
Mark
sets
even
when
the
insn
is
dead
.
*
ifcvt
.
c
(
noce_process_if_block
)
:
Fail
the
conversion
if
X
is
*
ifcvt
.
c
(
noce_process_if_block
)
:
Fail
the
conversion
if
X
is
referenced
bewteen
the
condition
and
the
jump
.
Don
'
t
delete
referenced
bewteen
the
condition
and
the
jump
.
Don
'
t
delete
anything
but
the
jump
.
anything
but
the
jump
.
...
...
gcc/flow.c
View file @
5e9e738c
...
@@ -3364,6 +3364,15 @@ propagate_one_insn (pbi, insn)
...
@@ -3364,6 +3364,15 @@ propagate_one_insn (pbi, insn)
delete it. */
delete it. */
if
((
flags
&
PROP_KILL_DEAD_CODE
)
&&
insn_is_dead
)
if
((
flags
&
PROP_KILL_DEAD_CODE
)
&&
insn_is_dead
)
{
{
/* Record sets. Do this even for dead instructions, since they
would have killed the values if they hadn't been deleted. */
mark_set_regs
(
pbi
,
PATTERN
(
insn
),
insn
);
/* CC0 is now known to be dead. Either this insn used it,
in which case it doesn't anymore, or clobbered it,
so the next insn can't use it. */
pbi
->
cc0_live
=
0
;
if
(
libcall_is_dead
)
if
(
libcall_is_dead
)
{
{
prev
=
propagate_block_delete_libcall
(
pbi
->
bb
,
insn
,
note
);
prev
=
propagate_block_delete_libcall
(
pbi
->
bb
,
insn
,
note
);
...
@@ -3372,11 +3381,6 @@ propagate_one_insn (pbi, insn)
...
@@ -3372,11 +3381,6 @@ propagate_one_insn (pbi, insn)
else
else
propagate_block_delete_insn
(
pbi
->
bb
,
insn
);
propagate_block_delete_insn
(
pbi
->
bb
,
insn
);
/* CC0 is now known to be dead. Either this insn used it,
in which case it doesn't anymore, or clobbered it,
so the next insn can't use it. */
pbi
->
cc0_live
=
0
;
return
prev
;
return
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