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
9f31cf0d
Commit
9f31cf0d
authored
Aug 11, 1997
by
Jeff Law
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove gratuitous changes from the alias analysis patches.
From-SVN: r14771
parent
8c660648
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
gcc/ChangeLog
+0
-3
gcc/sched.c
+5
-5
No files found.
gcc/ChangeLog
View file @
9f31cf0d
...
...
@@ -94,10 +94,7 @@ Mon Aug 11 10:04:49 1997 Jeffrey A Law (law@cygnus.com)
(alias.o): Add dependencies.
* alias.c: New file.
* sched.c: Remove alias analysis code. It lives in alias.c now.
(reg_last_uses_size): Declare.
(sched_analyze_2): Add new arguments to true_dependence.
(sched_analyze_insn): Use reg_last_uses_size instead of max_reg.
(schedule_block): Initialize reg_last_uses_size.
(schedule_insns): Always call init_alias_analysis.
* calls.c (expand_call): Note calls to malloc, calloc, and realloc;
mark return value from such functions as a pointer and keep track of
...
...
gcc/sched.c
View file @
9f31cf0d
...
...
@@ -146,7 +146,6 @@ static int *sched_reg_live_length;
such insn. Needed for new registers which may be introduced
by splitting insns. */
static
rtx
*
reg_last_uses
;
static
int
reg_last_uses_size
;
static
rtx
*
reg_last_sets
;
static
regset
reg_pending_sets
;
static
int
reg_pending_sets_all
;
...
...
@@ -1486,7 +1485,7 @@ sched_analyze_insn (x, insn, loop_notes)
{
register
RTX_CODE
code
=
GET_CODE
(
x
);
rtx
link
;
int
maxreg
=
reg_last_uses_size
;
int
maxreg
=
max_reg_num
()
;
int
i
;
if
(
code
==
SET
||
code
==
CLOBBER
)
...
...
@@ -1523,7 +1522,7 @@ sched_analyze_insn (x, insn, loop_notes)
if
(
loop_notes
)
{
int
max_reg
=
reg_last_uses_size
;
int
max_reg
=
max_reg_num
()
;
rtx
link
;
for
(
i
=
0
;
i
<
max_reg
;
i
++
)
...
...
@@ -1661,7 +1660,8 @@ sched_analyze (head, tail)
if
(
NEXT_INSN
(
insn
)
&&
GET_CODE
(
NEXT_INSN
(
insn
))
==
NOTE
&&
NOTE_LINE_NUMBER
(
NEXT_INSN
(
insn
))
==
NOTE_INSN_SETJMP
)
{
for
(
i
=
0
;
i
<
reg_last_uses_size
;
i
++
)
int
max_reg
=
max_reg_num
();
for
(
i
=
0
;
i
<
max_reg
;
i
++
)
{
for
(
u
=
reg_last_uses
[
i
];
u
;
u
=
XEXP
(
u
,
1
))
add_dependence
(
insn
,
XEXP
(
u
,
0
),
REG_DEP_ANTI
);
...
...
@@ -2636,7 +2636,7 @@ schedule_block (b, file)
fprintf
(
file
,
";;
\t
-- basic block number %d from %d to %d --
\n
"
,
b
,
INSN_UID
(
basic_block_head
[
b
]),
INSN_UID
(
basic_block_end
[
b
]));
reg_last_uses_size
=
i
=
max_reg_num
();
i
=
max_reg_num
();
reg_last_uses
=
(
rtx
*
)
alloca
(
i
*
sizeof
(
rtx
));
bzero
((
char
*
)
reg_last_uses
,
i
*
sizeof
(
rtx
));
reg_last_sets
=
(
rtx
*
)
alloca
(
i
*
sizeof
(
rtx
));
...
...
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