[Timer] Use unique keys for JSON output for -ftime-report=per-pass-run (#248299)
-ftime-report=per-pass-run is supposed to display separate pass
invocations as separate entries. But in the JSON we'd put them all as
the same key (e.g. "InstCombine").
Now we output a key like "InstCombine_1" to distinguish separate pass
invocations.
Assisted by Gemini