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
02a566dc
Commit
02a566dc
authored
Mar 29, 2002
by
Dale Johannesen
Committed by
Richard Henderson
Mar 29, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* loop.c (combine_movables): Do allow combination of pseudos.
From-SVN: r51581
parent
5bebbee7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
gcc/ChangeLog
+4
-0
gcc/loop.c
+5
-4
No files found.
gcc/ChangeLog
View file @
02a566dc
2002-03-29 Dale Johannesen <dalej@apple.com>
* loop.c (combine_movables): Do allow combination of pseudos.
2002-03-29 Loren J. Rittle <ljrittle@acm.org>
* config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
...
...
gcc/loop.c
View file @
02a566dc
...
...
@@ -1446,10 +1446,13 @@ combine_movables (movables, regs)
/* Regs that are set more than once are not allowed to match
or be matched. I'm no longer sure why not. */
/* Only pseudo registers are allowed to match or be matched,
since move_movables does not validate the change. */
/* Perhaps testing m->consec_sets would be more appropriate here? */
for
(
m
=
movables
->
head
;
m
;
m
=
m
->
next
)
if
(
m
->
match
==
0
&&
regs
->
array
[
m
->
regno
].
n_times_set
==
1
&&
m
->
regno
>=
FIRST_PSEUDO_REGISTER
&&
!
m
->
partial
)
{
struct
movable
*
m1
;
...
...
@@ -1461,11 +1464,9 @@ combine_movables (movables, regs)
/* We want later insns to match the first one. Don't make the first
one match any later ones. So start this loop at m->next. */
for
(
m1
=
m
->
next
;
m1
;
m1
=
m1
->
next
)
/* ??? HACK! move_movables does not verify that the replacement
is valid, which can have disasterous effects with hard regs
and match_dup. Turn combination off for now. */
if
(
0
&&
m
!=
m1
&&
m1
->
match
==
0
if
(
m
!=
m1
&&
m1
->
match
==
0
&&
regs
->
array
[
m1
->
regno
].
n_times_set
==
1
&&
m1
->
regno
>=
FIRST_PSEUDO_REGISTER
/* A reg used outside the loop mustn't be eliminated. */
&&
!
m1
->
global
/* A reg used for zero-extending mustn't be eliminated. */
...
...
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