Skip to content

Commit

Permalink
drt: mora variable rename
Browse files Browse the repository at this point in the history
Signed-off-by: bernardo <bernardoborgessandoval@gmail.com>
  • Loading branch information
bnmfw committed Mar 6, 2025
1 parent d640055 commit 5ea1ac5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/drt/src/pa/FlexPA_unique.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ bool UniqueInsts::addUniqueInst(frInst* inst)
unique_inst = inst;
new_unique_class = true;
} else {
// guarantees everyone on the family has the same unique_inst (the first
// guarantees everyone on the class has the same unique_inst (the first
// that came)
unique_inst = inst_to_unique_[*unique_class.begin()];
}
Expand Down Expand Up @@ -320,14 +320,14 @@ void UniqueInsts::deleteUniqueInst(frInst* inst)
}
unique_.erase(it);
unique_to_idx_.erase(inst);
// TODO: lidar com unique_to_pa_idx
unique_to_pa_idx_.erase(inst);

} else if (inst == inst_to_unique_[inst] && unique_class.size() > 1) {
// the inst does not belong to the class anymore, but is the reference
// unique_inst, so the reference has to be another inst
auto family_begin = inst_to_class_[inst]->begin();
auto class_begin = inst_to_class_[inst]->begin();
frInst* new_head
= *family_begin != inst ? *family_begin : *(++family_begin);
= *class_begin != inst ? *class_begin : *(++class_begin);
unique_[unique_to_idx_[inst]] = new_head;
for (frInst* other_inst : unique_class) {
inst_to_unique_[other_inst] = new_head;
Expand Down

0 comments on commit 5ea1ac5

Please sign in to comment.