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.
1 parent c12c451 commit d96ba8aCopy full SHA for d96ba8a
Deeploy/TilingExtension/TilingCodegen.py
@@ -165,7 +165,16 @@ def minimizeVariableReplacement(
165
newRepTypes = {}
166
167
for key, value in scheme.perTileReplacements.items():
168
- if len(value) > 1:
+ more_than_one_unique_item = False
169
+ items_checked = list()
170
+ for item in value:
171
+ if item not in items_checked:
172
+ items_checked.append(item)
173
+ if len(items_checked) > 1:
174
+ more_than_one_unique_item = True
175
+ break
176
+
177
+ if more_than_one_unique_item:
178
newPerTileRep[key] = scheme.perTileReplacements[key]
179
newRepTypes[key] = scheme.replacementTypes[key]
180
else:
0 commit comments