The compiler is invoking NormalizeNames more than once. Really, we should be normalizing IR names at most once, then generating unique names for all new names introduced through lowering and compilation.
Things to do:
- Normalize names at the start of the lowering + compilation pipeline
- Add a rule to the lowering pipeline to enforce IR names are unique to catch any lowering implementations that break the invariant
- Fix those that misbehave
The compiler is invoking
NormalizeNamesmore than once. Really, we should be normalizing IR names at most once, then generating unique names for all new names introduced through lowering and compilation.Things to do: