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
f353588a
Commit
f353588a
authored
Nov 26, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(insert): Don't put a REG into qty_const.
From-SVN: r10607
parent
de3cb7c3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/cse.c
+5
-3
No files found.
gcc/cse.c
View file @
f353588a
...
...
@@ -1371,20 +1371,22 @@ insert (x, classp, hash, mode)
update `qty_const_insn' to show that `this_insn' is the latest
insn making that quantity equivalent to the constant. */
if
(
elt
->
is_const
&&
classp
&&
GET_CODE
(
classp
->
exp
)
==
REG
)
if
(
elt
->
is_const
&&
classp
&&
GET_CODE
(
classp
->
exp
)
==
REG
&&
GET_CODE
(
x
)
!=
REG
)
{
qty_const
[
reg_qty
[
REGNO
(
classp
->
exp
)]]
=
gen_lowpart_if_possible
(
qty_mode
[
reg_qty
[
REGNO
(
classp
->
exp
)]],
x
);
qty_const_insn
[
reg_qty
[
REGNO
(
classp
->
exp
)]]
=
this_insn
;
}
else
if
(
GET_CODE
(
x
)
==
REG
&&
classp
&&
!
qty_const
[
reg_qty
[
REGNO
(
x
)]])
else
if
(
GET_CODE
(
x
)
==
REG
&&
classp
&&
!
qty_const
[
reg_qty
[
REGNO
(
x
)]]
&&
!
elt
->
is_const
)
{
register
struct
table_elt
*
p
;
for
(
p
=
classp
;
p
!=
0
;
p
=
p
->
next_same_value
)
{
if
(
p
->
is_const
)
if
(
p
->
is_const
&&
GET_CODE
(
p
->
exp
)
!=
REG
)
{
qty_const
[
reg_qty
[
REGNO
(
x
)]]
=
gen_lowpart_if_possible
(
GET_MODE
(
x
),
p
->
exp
);
...
...
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