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
14bf4a33
Commit
14bf4a33
authored
Apr 27, 1998
by
Michael Meissner
Committed by
Michael Meissner
Apr 27, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make args to jump_optimize symbolic
From-SVN: r19421
parent
5d02ee66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
6 deletions
+29
-6
gcc/ChangeLog
+8
-0
gcc/rtl.h
+5
-0
gcc/toplev.c
+16
-6
No files found.
gcc/ChangeLog
View file @
14bf4a33
Mon Apr 27 08:55:23 1998 Michael Meissner <meissner@cygnus.com>
* rtl.h (JUMP_{CROSS_JUMP,NOOP_MOVES,AFTER_REGSCAN}): New macros
for calling jump_optimize.
* toplev.c (rest_of_compilation): Call jump_optimize using JUMP_*
macros, rather than 0/1's.
Sun Apr 26 23:19:10 1998 Richard Henderson <rth@cygnus.com>
* alpha.h (CONST_COSTS): Zero is always free.
...
...
gcc/rtl.h
View file @
14bf4a33
...
...
@@ -1141,6 +1141,11 @@ extern int can_reverse_comparison_p PROTO ((rtx, rtx));
extern
void
delete_for_peephole
PROTO
((
rtx
,
rtx
));
extern
int
condjump_in_parallel_p
PROTO
((
rtx
));
/* Flags for jump_optimize() */
#define JUMP_CROSS_JUMP 1
#define JUMP_NOOP_MOVES 1
#define JUMP_AFTER_REGSCAN 1
/* In emit-rtl.c. */
extern
int
max_reg_num
PROTO
((
void
));
extern
int
max_label_num
PROTO
((
void
));
...
...
gcc/toplev.c
View file @
14bf4a33
...
...
@@ -3074,7 +3074,8 @@ rest_of_compilation (decl)
int
saved_optimize
=
optimize
;
optimize
=
0
;
find_exception_handler_labels
();
jump_optimize
(
get_insns
(),
0
,
0
,
0
);
jump_optimize
(
get_insns
(),
!
JUMP_CROSS_JUMP
,
!
JUMP_NOOP_MOVES
,
!
JUMP_AFTER_REGSCAN
);
optimize
=
saved_optimize
;
}
...
...
@@ -3208,7 +3209,8 @@ rest_of_compilation (decl)
are initialized and to compute whether control can drop off the end
of the function. */
TIMEVAR
(
jump_time
,
reg_scan
(
insns
,
max_reg_num
(),
0
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
0
,
0
,
1
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
!
JUMP_CROSS_JUMP
,
!
JUMP_NOOP_MOVES
,
JUMP_AFTER_REGSCAN
));
/* Now is when we stop if -fsyntax-only and -Wreturn-type. */
if
(
rtl_dump_and_exit
||
flag_syntax_only
||
DECL_DEFER_OUTPUT
(
decl
))
...
...
@@ -3240,7 +3242,9 @@ rest_of_compilation (decl)
TIMEVAR
(
cse_time
,
delete_trivially_dead_insns
(
insns
,
max_reg_num
()));
if
(
tem
||
optimize
>
1
)
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
0
,
0
,
0
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
!
JUMP_CROSS_JUMP
,
!
JUMP_NOOP_MOVES
,
!
JUMP_AFTER_REGSCAN
));
/* Dump rtl code after cse, if we are doing that. */
...
...
@@ -3303,13 +3307,17 @@ rest_of_compilation (decl)
max_reg_num so we must rerun reg_scan afterwards.
??? Rework to not call reg_scan so often. */
TIMEVAR
(
jump_time
,
reg_scan
(
insns
,
max_reg_num
(),
0
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
0
,
0
,
1
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
!
JUMP_CROSS_JUMP
,
!
JUMP_NOOP_MOVES
,
JUMP_AFTER_REGSCAN
));
TIMEVAR
(
cse2_time
,
reg_scan
(
insns
,
max_reg_num
(),
0
));
TIMEVAR
(
cse2_time
,
tem
=
cse_main
(
insns
,
max_reg_num
(),
1
,
rtl_dump_file
));
if
(
tem
)
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
0
,
0
,
0
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
!
JUMP_CROSS_JUMP
,
!
JUMP_NOOP_MOVES
,
!
JUMP_AFTER_REGSCAN
));
}
if
(
flag_thread_jumps
)
...
...
@@ -3530,7 +3538,9 @@ rest_of_compilation (decl)
if
(
optimize
>
0
)
{
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
1
,
1
,
0
));
TIMEVAR
(
jump_time
,
jump_optimize
(
insns
,
JUMP_CROSS_JUMP
,
JUMP_NOOP_MOVES
,
!
JUMP_AFTER_REGSCAN
));
/* Dump rtl code after jump, if we are doing that. */
...
...
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