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
e28f5732
Commit
e28f5732
authored
Aug 16, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(use_crosses_set_p): Check for partially overlapping hard regs.
From-SVN: r5163
parent
e572bad3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
gcc/combine.c
+8
-2
No files found.
gcc/combine.c
View file @
e28f5732
...
@@ -9404,14 +9404,20 @@ use_crosses_set_p (x, from_cuid)
...
@@ -9404,14 +9404,20 @@ use_crosses_set_p (x, from_cuid)
if
(
code
==
REG
)
if
(
code
==
REG
)
{
{
register
int
regno
=
REGNO
(
x
);
register
int
regno
=
REGNO
(
x
);
int
endreg
=
regno
+
(
regno
<
FIRST_PSEUDO_REGISTER
?
HARD_REGNO_NREGS
(
regno
,
GET_MODE
(
x
))
:
1
);
#ifdef PUSH_ROUNDING
#ifdef PUSH_ROUNDING
/* Don't allow uses of the stack pointer to be moved,
/* Don't allow uses of the stack pointer to be moved,
because we don't know whether the move crosses a push insn. */
because we don't know whether the move crosses a push insn. */
if
(
regno
==
STACK_POINTER_REGNUM
)
if
(
regno
==
STACK_POINTER_REGNUM
)
return
1
;
return
1
;
#endif
#endif
return
(
reg_last_set
[
regno
]
for
(;
regno
<
endreg
;
regno
++
)
&&
INSN_CUID
(
reg_last_set
[
regno
])
>
from_cuid
);
if
(
reg_last_set
[
regno
]
&&
INSN_CUID
(
reg_last_set
[
regno
])
>
from_cuid
)
return
1
;
return
0
;
}
}
if
(
code
==
MEM
&&
mem_last_set
>
from_cuid
)
if
(
code
==
MEM
&&
mem_last_set
>
from_cuid
)
...
...
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