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
f251709a
Commit
f251709a
authored
Jun 04, 2010
by
Jan Hubicka
Committed by
Jan Hubicka
Jun 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dce.c (dce_process_block): Do not re-scan already marked instructions.
From-SVN: r160262
parent
8ff49c29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
gcc/ChangeLog
+4
-0
gcc/dce.c
+11
-12
No files found.
gcc/ChangeLog
View file @
f251709a
2010-06-04 Jan Hubicka <jh@suse.cz>
* dce.c (dce_process_block): Do not re-scan already marked instructions.
2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
PR rtl-optimization/39871
...
...
gcc/dce.c
View file @
f251709a
...
...
@@ -904,19 +904,18 @@ dce_process_block (basic_block bb, bool redo_out, bitmap au)
FOR_BB_INSNS_REVERSE
(
bb
,
insn
)
if
(
INSN_P
(
insn
))
{
bool
needed
=
false
;
bool
needed
=
marked_insn_p
(
insn
)
;
/* The insn is needed if there is someone who uses the output. */
for
(
def_rec
=
DF_INSN_DEFS
(
insn
);
*
def_rec
;
def_rec
++
)
if
(
bitmap_bit_p
(
local_live
,
DF_REF_REGNO
(
*
def_rec
))
||
bitmap_bit_p
(
au
,
DF_REF_REGNO
(
*
def_rec
)))
{
needed
=
true
;
break
;
}
if
(
needed
)
mark_insn
(
insn
,
true
);
if
(
!
needed
)
for
(
def_rec
=
DF_INSN_DEFS
(
insn
);
*
def_rec
;
def_rec
++
)
if
(
bitmap_bit_p
(
local_live
,
DF_REF_REGNO
(
*
def_rec
))
||
bitmap_bit_p
(
au
,
DF_REF_REGNO
(
*
def_rec
)))
{
needed
=
true
;
mark_insn
(
insn
,
true
);
break
;
}
/* No matter if the instruction is needed or not, we remove
any regno in the defs from the live set. */
...
...
@@ -924,7 +923,7 @@ dce_process_block (basic_block bb, bool redo_out, bitmap au)
/* On the other hand, we do not allow the dead uses to set
anything in local_live. */
if
(
marked_insn_p
(
insn
)
)
if
(
needed
)
df_simulate_uses
(
insn
,
local_live
);
}
...
...
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