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
a77b7e32
Commit
a77b7e32
authored
Jan 28, 2003
by
Roger Sayle
Committed by
Roger Sayle
Jan 28, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
From-SVN: r61971
parent
4ff71d24
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
gcc/ChangeLog
+4
-0
gcc/cse.c
+9
-5
No files found.
gcc/ChangeLog
View file @
a77b7e32
2003
-
01
-
28
Roger
Sayle
<
roger
@eyesopen
.
com
>
*
cse
.
c
(
cse_insn
)
:
Avoid
redundant
REG_EQUAL
notes
.
2003
-
01
-
28
Richard
Sandiford
<
rsandifo
@redhat
.
com
>
2003
-
01
-
28
Richard
Sandiford
<
rsandifo
@redhat
.
com
>
*
config
/
sh
/
sh
.
h
(
CLASS_MAX_NREGS
)
:
If
TARGET_SHMEDIA
,
and
the
given
*
config
/
sh
/
sh
.
h
(
CLASS_MAX_NREGS
)
:
If
TARGET_SHMEDIA
,
and
the
given
...
...
gcc/cse.c
View file @
a77b7e32
...
@@ -5684,12 +5684,16 @@ cse_insn (insn, libcall_insn)
...
@@ -5684,12 +5684,16 @@ cse_insn (insn, libcall_insn)
&&
GET_CODE
(
XEXP
(
XEXP
(
src_const
,
0
),
0
))
==
LABEL_REF
&&
GET_CODE
(
XEXP
(
XEXP
(
src_const
,
0
),
0
))
==
LABEL_REF
&&
GET_CODE
(
XEXP
(
XEXP
(
src_const
,
0
),
1
))
==
LABEL_REF
))
&&
GET_CODE
(
XEXP
(
XEXP
(
src_const
,
0
),
1
))
==
LABEL_REF
))
{
{
/* Make sure that the rtx is not shared with any other insn. */
/* We only want a REG_EQUAL note if src_const != src. */
src_const
=
copy_rtx
(
src_const
);
if
(
!
rtx_equal_p
(
src
,
src_const
))
{
/* Make sure that the rtx is not shared. */
src_const
=
copy_rtx
(
src_const
);
/* Record the actual constant value in a REG_EQUAL note, making
/* Record the actual constant value in a REG_EQUAL note,
a new one if one does not already exist. */
making a new one if one does not already exist. */
set_unique_reg_note
(
insn
,
REG_EQUAL
,
src_const
);
set_unique_reg_note
(
insn
,
REG_EQUAL
,
src_const
);
}
/* If storing a constant value in a register that
/* If storing a constant value in a register that
previously held the constant value 0,
previously held the constant value 0,
...
...
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