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
ebef2728
Commit
ebef2728
authored
Feb 12, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(expand_call): When preserving subexpressions, don't put expensive
arguments directly into hard registers. From-SVN: r6543
parent
99360286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
gcc/calls.c
+13
-1
No files found.
gcc/calls.c
View file @
ebef2728
/* Convert function calls to rtl insns, for GNU C compiler.
Copyright (C) 1989, 1992, 1993 Free Software Foundation, Inc.
Copyright (C) 1989, 1992, 1993
, 1994
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -1566,6 +1566,18 @@ expand_call (exp, target, ignore)
=
convert_modes
(
args
[
i
].
mode
,
TYPE_MODE
(
TREE_TYPE
(
args
[
i
].
tree_value
)),
args
[
i
].
value
,
args
[
i
].
unsignedp
);
/* If the value is expensive, and we are inside an appropriately
short loop, put the value into a pseudo and then put the pseudo
into the hard reg. */
if
((
!
(
GET_CODE
(
args
[
i
].
value
)
==
REG
||
(
GET_CODE
(
args
[
i
].
value
)
==
SUBREG
&&
GET_CODE
(
SUBREG_REG
(
args
[
i
].
value
))
==
REG
)))
&&
args
[
i
].
mode
!=
BLKmode
&&
rtx_cost
(
args
[
i
].
value
,
SET
)
>
2
&&
preserve_subexpressions_p
())
args
[
i
].
value
=
copy_to_mode_reg
(
args
[
i
].
mode
,
args
[
i
].
value
);
}
#if defined(ACCUMULATE_OUTGOING_ARGS) && defined(REG_PARM_STACK_SPACE)
...
...
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