Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
return_0;
compiler_return_0
Commits
517ac1bd
Commit
517ac1bd
authored
7 months ago
by
zerolllin
Browse files
Options
Download
Patches
Plain Diff
back up
parent
a179868f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/middleend/arrayssa.cpp
+6
-6
src/middleend/arrayssa.cpp
with
6 additions
and
6 deletions
+6
-6
src/middleend/arrayssa.cpp
+
6
−
6
View file @
517ac1bd
...
...
@@ -308,12 +308,12 @@ void ArraySSA::rename(DominatorTree_ *dom_tree, int &next_temp_id_) {
for
(
int
i
=
0
;
i
<
call
->
get_srcs
().
size
();
i
++
)
{
auto
param
=
call
->
get_srcs
()[
i
];
if
(
reg2base
.
find
(
param
)
!=
reg2base
.
end
())
{
//
if (call->get_func_name() != "__memset_zero__" && module_->get_func_map().find(call->get_func_name()) != module_->get_func_map().end()) {
//
auto dst_func = module_->func_map[call->get_func_name()];
//
if (func_param_use[dst_func].find(dst_func->get_arg_temp()->at(i)) == func_param_use[dst_func].end()) {
//
continue;
//
}
//
}
if
(
call
->
get_func_name
()
!=
"__memset_zero__"
&&
module_
->
get_func_map
().
find
(
call
->
get_func_name
())
!=
module_
->
get_func_map
().
end
())
{
auto
dst_func
=
module_
->
func_map
[
call
->
get_func_name
()];
if
(
func_param_use
[
dst_func
].
find
(
dst_func
->
get_arg_temp
()
->
at
(
i
))
==
func_param_use
[
dst_func
].
end
())
{
continue
;
}
}
auto
base
=
reg2base
[
param
];
auto
base_def
=
bb
;
while
(
alloc_map
[
base_def
].
find
(
base
)
==
alloc_map
[
base_def
].
end
())
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets