Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
f52c11a6
Commit
f52c11a6
authored
Jul 31, 2009
by
Matthias Braun
Browse files
less abreviations: rebitset_cpy => rebitset_copy
[r26297]
parent
7213344d
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/libfirm/adt/raw_bitset.h
View file @
f52c11a6
...
...
@@ -355,7 +355,8 @@ static inline int rbitset_equal(const unsigned *bitset1,
* @param src the source set
* @param size size of both bitsets
*/
static
inline
void
rbitset_cpy
(
unsigned
*
dst
,
const
unsigned
*
src
,
size_t
size
)
{
static
inline
void
rbitset_copy
(
unsigned
*
dst
,
const
unsigned
*
src
,
size_t
size
)
{
memcpy
(
dst
,
src
,
BITSET_SIZE_BYTES
(
size
));
}
...
...
ir/opt/opt_ldst.c
View file @
f52c11a6
...
...
@@ -1607,7 +1607,7 @@ static int backward_antic(block_t *bl) {
block_t
*
succ_bl
=
get_block_entry
(
succ
);
int
i
;
rbitset_cpy
(
env
.
curr_set
,
succ_bl
->
anticL_in
,
env
.
rbs_size
);
rbitset_c
o
py
(
env
.
curr_set
,
succ_bl
->
anticL_in
,
env
.
rbs_size
);
memcpy
(
env
.
curr_id_2_memop
,
succ_bl
->
id_2_memop_antic
,
env
.
rbs_size
*
sizeof
(
env
.
curr_id_2_memop
[
0
]));
/* Hmm: probably we want kill merges of Loads ans Stores here */
...
...
@@ -1653,7 +1653,7 @@ static int backward_antic(block_t *bl) {
memcpy
(
bl
->
id_2_memop_antic
,
env
.
curr_id_2_memop
,
env
.
rbs_size
*
sizeof
(
env
.
curr_id_2_memop
[
0
]));
if
(
!
rbitset_equal
(
bl
->
anticL_in
,
env
.
curr_set
,
env
.
rbs_size
))
{
/* changed */
rbitset_cpy
(
bl
->
anticL_in
,
env
.
curr_set
,
env
.
rbs_size
);
rbitset_c
o
py
(
bl
->
anticL_in
,
env
.
curr_set
,
env
.
rbs_size
);
dump_curr
(
bl
,
"AnticL_in*"
);
return
1
;
}
...
...
@@ -1982,7 +1982,7 @@ static int insert_Load(block_t *bl) {
ir_node
*
pred
=
get_Block_cfgpred_block
(
bl
->
block
,
0
);
block_t
*
pred_bl
=
get_block_entry
(
pred
);
rbitset_cpy
(
env
.
curr_set
,
pred_bl
->
avail_out
,
env
.
rbs_size
);
rbitset_c
o
py
(
env
.
curr_set
,
pred_bl
->
avail_out
,
env
.
rbs_size
);
memcpy
(
env
.
curr_id_2_memop
,
pred_bl
->
id_2_memop_avail
,
env
.
rbs_size
*
sizeof
(
bl
->
id_2_memop_avail
[
0
]));
}
...
...
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