Performance improvement for inst.uses() Keep a set for each ID tracking which instructions are using this ID, instead of iteraring over all the instructions each time in order to find out the dependencies.
Performance improvement for inst.uses()
Keep a set for each ID tracking which instructions are using this ID,
instead of iteraring over all the instructions each time in order to find
out the dependencies.

TODO: The naming of the various functions for the "uses" functionality are
confusing/nonstandard.

kristerw/spirv-tools