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
7d5ab30e
Commit
7d5ab30e
authored
Jan 09, 2002
by
Jan Hubicka
Committed by
Richard Henderson
Jan 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
From-SVN: r48694
parent
ffb9c594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
gcc/ChangeLog
+4
-0
gcc/gcse.c
+11
-19
No files found.
gcc/ChangeLog
View file @
7d5ab30e
2002-01-09 Jan Hubicka <jh@suse.cz>
* gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
2002-01-09 Richard Henderson <rth@redhat.com>
2002-01-09 Richard Henderson <rth@redhat.com>
* config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
* config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
...
...
gcc/gcse.c
View file @
7d5ab30e
...
@@ -4037,28 +4037,20 @@ cprop_jump (bb, insn, from, src)
...
@@ -4037,28 +4037,20 @@ cprop_jump (bb, insn, from, src)
if
(
rtx_equal_p
(
new
,
SET_SRC
(
set
)))
if
(
rtx_equal_p
(
new
,
SET_SRC
(
set
)))
return
0
;
return
0
;
/* If this is now a no-op leave it that way, but update LABEL_NUSED if
/* If this is now a no-op delete it, otherwise this must be a valid insn. */
necessary. */
if
(
new
==
pc_rtx
)
if
(
new
==
pc_rtx
)
delete_insn
(
insn
);
else
{
{
SET_SRC
(
set
)
=
new
;
if
(
!
validate_change
(
insn
,
&
SET_SRC
(
set
),
new
,
0
))
return
0
;
if
(
JUMP_LABEL
(
insn
)
!=
0
)
{
--
LABEL_NUSES
(
JUMP_LABEL
(
insn
));
JUMP_LABEL
(
insn
)
=
NULL_RTX
;
}
}
/* Otherwise, this must be a valid instruction. */
else
if
(
!
validate_change
(
insn
,
&
SET_SRC
(
set
),
new
,
0
))
return
0
;
/* If this has turned into an unconditional jump,
/* If this has turned into an unconditional jump,
then put a barrier after it so that the unreachable
then put a barrier after it so that the unreachable
code will be deleted. */
code will be deleted. */
if
(
GET_CODE
(
SET_SRC
(
set
))
==
LABEL_REF
)
if
(
GET_CODE
(
SET_SRC
(
set
))
==
LABEL_REF
)
emit_barrier_after
(
insn
);
emit_barrier_after
(
insn
);
}
run_jump_opt_after_gcse
=
1
;
run_jump_opt_after_gcse
=
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