Speed up DetermineHloInstructionIsReplicated.
Speed up DetermineHloInstructionIsReplicated.

A reasonable chunk of time gets used in resizing hash sets after insertions. We can instead resize these hashsets before insertions.
