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
4d9d7d9d
Commit
4d9d7d9d
authored
Sep 19, 1992
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(reg_set_last): Allow old value to be a SUBREG.
From-SVN: r2170
parent
95ac8e67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
gcc/rtlanal.c
+4
-3
No files found.
gcc/rtlanal.c
View file @
4d9d7d9d
...
@@ -779,8 +779,8 @@ reg_set_last_1 (x, pat)
...
@@ -779,8 +779,8 @@ reg_set_last_1 (x, pat)
/* Return the last value to which REG was set prior to INSN. If we can't
/* Return the last value to which REG was set prior to INSN. If we can't
find it easily, return 0.
find it easily, return 0.
We only return a REG
or constant because it is too hard to check if a
We only return a REG
, SUBREG, or constant because it is too hard to
MEM remains unchanged. */
check if a
MEM remains unchanged. */
rtx
rtx
reg_set_last
(
x
,
insn
)
reg_set_last
(
x
,
insn
)
...
@@ -818,7 +818,8 @@ reg_set_last (x, insn)
...
@@ -818,7 +818,8 @@ reg_set_last (x, insn)
else
if
(
reg_set_last_value
)
else
if
(
reg_set_last_value
)
{
{
if
(
CONSTANT_P
(
reg_set_last_value
)
if
(
CONSTANT_P
(
reg_set_last_value
)
||
(
GET_CODE
(
reg_set_last_value
)
==
REG
||
((
GET_CODE
(
reg_set_last_value
)
==
REG
||
GET_CODE
(
reg_set_last_value
)
==
SUBREG
)
&&
!
reg_set_between_p
(
reg_set_last_value
,
&&
!
reg_set_between_p
(
reg_set_last_value
,
NEXT_INSN
(
insn
),
orig_insn
)))
NEXT_INSN
(
insn
),
orig_insn
)))
return
reg_set_last_value
;
return
reg_set_last_value
;
...
...
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