Commit 17079b0b authored by syx's avatar syx
Browse files

将循环中的块遍历从逆后序修改为拓扑序

No related merge requests found
Showing with 1 addition and 0 deletions
+1 -0
......@@ -120,6 +120,7 @@ void Mem2Reg::rename(BasicBlock *bb, const Dominators *dominators_) {
if (inst->is_phi()) {
auto phi = dynamic_cast<PhiInst *>(inst);
auto lval = phi_map_[phi];
if(not lval) continue;
if (var_stack_.find(lval) == var_stack_.end())
continue;
// assert(!var_stack_[lval].empty());
......
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