[XLA] Fix an incorrect use of a hashmap in HloCSE.
[XLA] Fix an incorrect use of a hashmap in HloCSE.

Before the fix there were values where x==b, but hash(a) != hash(b). This was because the equality was insensitive to the layout whereas the hash was sensitive.
