[XLA] [NFC] Serialize all autotuning results
[XLA] [NFC] Serialize all autotuning results

The previous logic for filtering by-module wasn't correct, as instructions
could be modified after autotuning, resuling in not all relevant information
serialized.

This could result in excessive data serialized, but autotuning results are very
small compared to the module size and the compiled artifact.
