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
77ea49a4
Commit
77ea49a4
authored
Nov 28, 2000
by
Bernd Schmidt
Committed by
Bernd Schmidt
Nov 28, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore SETs that are anything except REG or MEM, but look inside STRICT_LOW_PART.
From-SVN: r37819
parent
c5c0b3d9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
6 deletions
+24
-6
gcc/ChangeLog
+5
-0
gcc/simplify-rtx.c
+19
-6
No files found.
gcc/ChangeLog
View file @
77ea49a4
2000-11-28 Bernd Schmidt <bernds@redhat.co.uk>
* simplify-rtx.c (cselib_record_sets): Ignore sets whose destination
is anything but REG or MEM, but look inside STRICT_LOW_PART.
Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
Tue Nov 28 09:53:50 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
* system.h (IS_DIR_SEPARATOR): Use uppercase macro name.
...
...
gcc/simplify-rtx.c
View file @
77ea49a4
...
@@ -3198,14 +3198,23 @@ cselib_record_sets (insn)
...
@@ -3198,14 +3198,23 @@ cselib_record_sets (insn)
locations that are written. */
locations that are written. */
for
(
i
=
0
;
i
<
n_sets
;
i
++
)
for
(
i
=
0
;
i
<
n_sets
;
i
++
)
{
{
sets
[
i
].
src_elt
=
cselib_lookup
(
sets
[
i
].
src
,
GET_MODE
(
sets
[
i
].
dest
),
rtx
dest
=
sets
[
i
].
dest
;
1
);
if
(
GET_CODE
(
sets
[
i
].
dest
)
==
MEM
)
/* A STRICT_LOW_PART can be ignored; we'll record the equivalence for
sets
[
i
].
dest_addr_elt
=
cselib_lookup
(
XEXP
(
sets
[
i
].
dest
,
0
),
Pmode
,
the low part after invalidating any knowledge about larger modes. */
1
);
if
(
GET_CODE
(
sets
[
i
].
dest
)
==
STRICT_LOW_PART
)
sets
[
i
].
dest
=
dest
=
XEXP
(
dest
,
0
);
/* We don't know how to record anything but REG or MEM. */
if
(
GET_CODE
(
dest
)
==
REG
||
GET_CODE
(
dest
)
==
MEM
)
{
sets
[
i
].
src_elt
=
cselib_lookup
(
sets
[
i
].
src
,
GET_MODE
(
dest
),
1
);
if
(
GET_CODE
(
dest
)
==
MEM
)
sets
[
i
].
dest_addr_elt
=
cselib_lookup
(
XEXP
(
dest
,
0
),
Pmode
,
1
);
else
else
sets
[
i
].
dest_addr_elt
=
0
;
sets
[
i
].
dest_addr_elt
=
0
;
}
}
}
/* Invalidate all locations written by this insn. Note that the elts we
/* Invalidate all locations written by this insn. Note that the elts we
looked up in the previous loop aren't affected, just some of their
looked up in the previous loop aren't affected, just some of their
...
@@ -3214,7 +3223,11 @@ cselib_record_sets (insn)
...
@@ -3214,7 +3223,11 @@ cselib_record_sets (insn)
/* Now enter the equivalences in our tables. */
/* Now enter the equivalences in our tables. */
for
(
i
=
0
;
i
<
n_sets
;
i
++
)
for
(
i
=
0
;
i
<
n_sets
;
i
++
)
cselib_record_set
(
sets
[
i
].
dest
,
sets
[
i
].
src_elt
,
sets
[
i
].
dest_addr_elt
);
{
rtx
dest
=
sets
[
i
].
dest
;
if
(
GET_CODE
(
dest
)
==
REG
||
GET_CODE
(
dest
)
==
MEM
)
cselib_record_set
(
dest
,
sets
[
i
].
src_elt
,
sets
[
i
].
dest_addr_elt
);
}
}
}
/* Record the effects of INSN. */
/* Record the effects of INSN. */
...
...
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