This regressed in D154458 due to the added tracking of used variable
names that now also has to be cleared alongside the counter.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This makes sense to me, but it would make even more sense if I saw an example of what triggers the issue and how it manifests itself ;-) That's only a nice-to-have.
LGTM, ta!
Comment Actions
The issue is a simple one :)
Pass some MLIR with multiple functions to generate-test-checks.py and it'll (incorrectly) throw "VAL_0: duplicate variable name".
func.func @func_a(...) {
// SSA values in here.
// The script names them VAL_0, 1, 2, 3 etc..
}
// End of function: clear counter, but forget to clear used_attribute_names.
func.func @func_b(...) {
// More SSA values in here.
// Since counter is at zero VAL_0 is used again, but VAL_0 is still in used_attribute_names.
// Erroneously throw "duplicate variable name"
}