As I know, LLVM optimizer (maybe also GCC) is not idempotent, does it mean we need to pay performance for idempotent buildings?
Deterministic builds aren't always that straightforward
There's a long tail of tricky problems to solve for reproducible builds, but a specific build of a compiler producing different executable code from run to run hasn't really been one of them.
If what you're saying is true - stage 3 bootstrap wouldn't be possible.
So I'm reasonably sure it does produce bit-identical results.