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
11203ed8
Commit
11203ed8
authored
Sep 15, 1994
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use whether DImode variables are used as basis for chosing register alloc order dca
From-SVN: r8087
parent
485fafaa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
gcc/config/i386/i386.c
+34
-3
No files found.
gcc/config/i386/i386.c
View file @
11203ed8
...
...
@@ -172,20 +172,51 @@ order_regs_for_local_alloc ()
}
/* If users did not specify a register allocation order, favor eax
normally except if cse is following jumps, then favor edx so
that function returns are cse'ed */
normally except if DImode variables are used, in which case
favor edx before eax, which seems to cause less spill register
not found messages. */
else
{
rtx
insn
;
for
(
i
=
0
;
i
<
FIRST_PSEUDO_REGISTER
;
i
++
)
reg_alloc_order
[
i
]
=
i
;
if
(
optimize
&&
flag_cse_follow_jumps
&&
!
leaf_function_p
())
if
(
optimize
)
{
int
use_dca
=
FALSE
;
for
(
insn
=
get_insns
();
insn
;
insn
=
NEXT_INSN
(
insn
))
{
if
(
GET_CODE
(
insn
)
==
INSN
)
{
rtx
set
=
NULL_RTX
;
rtx
pattern
=
PATTERN
(
insn
);
if
(
GET_CODE
(
pattern
)
==
SET
)
set
=
pattern
;
else
if
((
GET_CODE
(
pattern
)
==
PARALLEL
||
GET_CODE
(
pattern
)
==
SEQUENCE
)
&&
GET_CODE
(
XVECEXP
(
pattern
,
0
,
0
))
==
SET
)
set
=
XVECEXP
(
pattern
,
0
,
0
);
if
(
set
&&
GET_MODE
(
SET_SRC
(
set
))
==
DImode
)
{
use_dca
=
TRUE
;
break
;
}
}
}
if
(
use_dca
)
{
reg_alloc_order
[
0
]
=
1
;
/* edx */
reg_alloc_order
[
1
]
=
2
;
/* ecx */
reg_alloc_order
[
2
]
=
0
;
/* eax */
}
}
}
}
...
...
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