We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4ddbc3 + f4f6549 commit 481162bCopy full SHA for 481162b
passes/cmds/portarcs.cc
@@ -192,16 +192,18 @@ struct PortarcsPass : Pass {
192
if (annotations.count(bit)) {
193
// consistency check
194
log_assert(annotations.at(bit)[0] == ((int) (intptr_t) bit.wire));
195
-
196
- recycling.push_back(annotations.at(ordering[i]));
+ } else {
+ alloc_for_bit(bit);
197
}
198
+
199
+ recycling.push_back(annotations.at(ordering[i]));
200
201
log_debug("Allocated %lux%d\n", allocated.size(), inputs.size());
202
203
for (auto bit : outputs) {
204
int *p = annotations.at(canonical_bit(bit));
205
for (int i = 0; i < inputs.size(); i++)
- p[i] = 0;
206
+ p[i] = -1;
207
208
209
for (int i = 0; i < ordering.size(); i++) {
0 commit comments