Indent fix

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-06-05 09:53:06 +02:00
parent 00d32eb73d
commit 6cc60ffd67
1 changed files with 22 additions and 20 deletions

View File

@ -404,29 +404,31 @@ struct SetundefPass : public Pass {
initwires.insert(wire); initwires.insert(wire);
} }
for (int wire_types = 0; wire_types < 2; wire_types++) { for (int wire_types = 0; wire_types < 2; wire_types++)
pool<SigBit> ffbitsToErase; {
for (auto wire : module->wires()) { pool<SigBit> ffbitsToErase;
if (wire->name[0] == (wire_types ? '\\' : '$')) { for (auto wire : module->wires())
next_wire: {
continue; if (wire->name[0] == (wire_types ? '\\' : '$')) {
} next_wire:
continue;
}
for (auto bit : sigmap(wire)) for (auto bit : sigmap(wire))
if (!ffbits.count(bit)) { if (!ffbits.count(bit)) {
goto next_wire; goto next_wire;
} }
for (auto bit : sigmap(wire)) { for (auto bit : sigmap(wire)) {
ffbitsToErase.insert(bit); ffbitsToErase.insert(bit);
} }
initwires.insert(wire); initwires.insert(wire);
} }
for (const auto &bit : ffbitsToErase) { for (const auto & bit : ffbitsToErase) {
ffbits.erase(bit); ffbits.erase(bit);
} }
} }
for (auto wire : initwires) for (auto wire : initwires)
{ {