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
370d11ad
Commit
370d11ad
authored
Mar 04, 2004
by
Jan Hubicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undo accidentally commited garbage.
From-SVN: r78877
parent
e654c19e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
gcc/cselib.c
+4
-17
No files found.
gcc/cselib.c
View file @
370d11ad
...
...
@@ -42,7 +42,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "params.h"
#include "alloc-pool.h"
static
bool
cselib_record_memory
;
static
int
entry_and_rtx_equal_p
(
const
void
*
,
const
void
*
);
static
hashval_t
get_value_hash
(
const
void
*
);
static
struct
elt_list
*
new_elt_list
(
struct
elt_list
*
,
cselib_val
*
);
...
...
@@ -749,7 +748,6 @@ cselib_lookup_mem (rtx x, int create)
struct
elt_list
*
l
;
if
(
MEM_VOLATILE_P
(
x
)
||
mode
==
BLKmode
||
!
cselib_record_memory
||
(
FLOAT_MODE_P
(
mode
)
&&
flag_float_store
))
return
0
;
...
...
@@ -1203,8 +1201,7 @@ cselib_record_set (rtx dest, cselib_val *src_elt, cselib_val *dest_addr_elt)
n_useless_values
--
;
src_elt
->
locs
=
new_elt_loc_list
(
src_elt
->
locs
,
dest
);
}
else
if
(
GET_CODE
(
dest
)
==
MEM
&&
dest_addr_elt
!=
0
&&
cselib_record_memory
)
else
if
(
GET_CODE
(
dest
)
==
MEM
&&
dest_addr_elt
!=
0
)
{
if
(
src_elt
->
locs
==
0
)
n_useless_values
--
;
...
...
@@ -1278,8 +1275,7 @@ cselib_record_sets (rtx insn)
sets
[
i
].
dest
=
dest
=
XEXP
(
dest
,
0
);
/* We don't know how to record anything but REG or MEM. */
if
(
GET_CODE
(
dest
)
==
REG
||
(
GET_CODE
(
dest
)
==
MEM
&&
cselib_record_memory
))
if
(
GET_CODE
(
dest
)
==
REG
||
GET_CODE
(
dest
)
==
MEM
)
{
rtx
src
=
sets
[
i
].
src
;
if
(
cond
)
...
...
@@ -1324,8 +1320,7 @@ cselib_record_sets (rtx insn)
for
(
i
=
0
;
i
<
n_sets
;
i
++
)
{
rtx
dest
=
sets
[
i
].
dest
;
if
(
GET_CODE
(
dest
)
==
REG
||
(
GET_CODE
(
dest
)
==
MEM
&&
cselib_record_memory
))
if
(
GET_CODE
(
dest
)
==
REG
||
GET_CODE
(
dest
)
==
MEM
)
cselib_record_set
(
dest
,
sets
[
i
].
src_elt
,
sets
[
i
].
dest_addr_elt
);
}
}
...
...
@@ -1399,16 +1394,12 @@ cselib_process_insn (rtx insn)
remove_useless_values
();
}
static
int
initialized
;
/* Initialize cselib for one pass. The caller must also call
init_alias_analysis. */
void
cselib_init
(
bool
record_memory
)
cselib_init
(
void
)
{
if
(
initialized
)
abort
();
initialized
=
1
;
elt_list_pool
=
create_alloc_pool
(
"elt_list"
,
sizeof
(
struct
elt_list
),
10
);
elt_loc_list_pool
=
create_alloc_pool
(
"elt_loc_list"
,
...
...
@@ -1417,7 +1408,6 @@ cselib_init (bool record_memory)
sizeof
(
cselib_val
),
10
);
value_pool
=
create_alloc_pool
(
"value"
,
RTX_SIZE
(
VALUE
),
100
);
cselib_record_memory
=
record_memory
;
/* This is only created once. */
if
(
!
callmem
)
callmem
=
gen_rtx_MEM
(
BLKmode
,
const0_rtx
);
...
...
@@ -1447,9 +1437,6 @@ cselib_init (bool record_memory)
void
cselib_finish
(
void
)
{
if
(
!
initialized
)
abort
();
initialized
=
0
;
free_alloc_pool
(
elt_list_pool
);
free_alloc_pool
(
elt_loc_list_pool
);
free_alloc_pool
(
cselib_val_pool
);
...
...
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