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
56b5e76b
Commit
56b5e76b
authored
May 15, 1994
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(stupid_life_analysis): Make sure a function result reg
is still live if it contains an argument. From-SVN: r7301
parent
4d367579
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
gcc/stupid.c
+10
-7
No files found.
gcc/stupid.c
View file @
56b5e76b
...
...
@@ -199,6 +199,13 @@ stupid_life_analysis (f, nregs, file)
if
(
regs_live
[
i
])
SET_HARD_REG_BIT
(
*
p
,
i
);
/* Update which hard regs are currently live
and also the birth and death suids of pseudo regs
based on the pattern of this insn. */
if
(
GET_RTX_CLASS
(
GET_CODE
(
insn
))
==
'i'
)
stupid_mark_refs
(
PATTERN
(
insn
),
insn
);
/* Mark all call-clobbered regs as live after each call insn
so that a pseudo whose life span includes this insn
will not go in one of them.
...
...
@@ -215,15 +222,11 @@ stupid_life_analysis (f, nregs, file)
if
(
call_used_regs
[
i
])
regs_live
[
i
]
=
0
;
/* It is important that this be done after processing the insn's
pattern because we want the function result register to still
be live if it's also used to pass arguments. */
stupid_mark_refs
(
CALL_INSN_FUNCTION_USAGE
(
insn
),
insn
);
}
/* Update which hard regs are currently live
and also the birth and death suids of pseudo regs
based on the pattern of this insn. */
if
(
GET_RTX_CLASS
(
GET_CODE
(
insn
))
==
'i'
)
stupid_mark_refs
(
PATTERN
(
insn
),
insn
);
}
/* Now decide the order in which to allocate the pseudo registers. */
...
...
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