You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TwoWayMap in the SSA refactoring only maps between a value of type T and its corresponding Id<T>. This is too narrow to apply to other similar use cases in ACIR-gen or the SSA optimization passes.
Happy Case
We should change the inner maps of a TwoWayMap from HashMap<T, Id<T> and HashMap<Id<T>, T> to HashMap<K, V> and HashMap<V, K>. Then we could use this abstraction for more SSA passes and in ACIR-gen.
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
TwoWayMap
in the SSA refactoring only maps between a value of typeT
and its correspondingId<T>
. This is too narrow to apply to other similar use cases in ACIR-gen or the SSA optimization passes.Happy Case
We should change the inner maps of a TwoWayMap from
HashMap<T, Id<T>
andHashMap<Id<T>, T>
toHashMap<K, V>
andHashMap<V, K>
. Then we could use this abstraction for more SSA passes and in ACIR-gen.Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: