Commit 517ac1bd authored by zerolllin's avatar zerolllin
Browse files

back up

parent a179868f
No related merge requests found
Showing with 6 additions and 6 deletions
+6 -6
......@@ -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()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment