rustfmt and trim trailing whitespace.

This commit is contained in:
Dan Gohman
2019-11-08 16:03:46 -08:00
parent da89d08fca
commit 39b0d670c5
7 changed files with 19 additions and 22 deletions

View File

@@ -151,7 +151,7 @@ fib:
lea rsp, [rsp + 0x18]
ja .Lloop
.Lreturn:
ret
ret
```
Now obviously I'm not advocating for replacing Firefox's optimising compiler with Lightbeam since the latter can only really produce better code when receiving optimised WebAssembly (and so debug-mode or hand-written WebAssembly may produce much worse output). However, this shows that even with the restrictions of a streaming compiler it's absolutely possible to produce high-quality assembly output. For the assembly above, the Lightbeam output runs within 15% of native speed. This is paramount for one of Lightbeam's intended usecases for real-time systems that want good runtime performance but cannot tolerate compiler bombs.