This PR switches Cranelift over to the new register allocator, regalloc2. See [this document](https://gist.github.com/cfallin/08553421a91f150254fe878f67301801) for a summary of the design changes. This switchover has implications for core VCode/MachInst types and the lowering pass. Overall, this change brings improvements to both compile time and speed of generated code (runtime), as reported in #3942: ``` Benchmark Compilation (wallclock) Execution (wallclock) blake3-scalar 25% faster 28% faster blake3-simd no diff no diff meshoptimizer 19% faster 17% faster pulldown-cmark 17% faster no diff bz2 15% faster no diff SpiderMonkey, 21% faster 2% faster fib(30) clang.wasm 42% faster N/A ```
21 lines
341 B
Plaintext
21 lines
341 B
Plaintext
test compile precise-output
|
|
set tls_model=elf_gd
|
|
target x86_64
|
|
|
|
function u0:0(i32) -> i64 {
|
|
gv0 = symbol colocated tls u1:0
|
|
|
|
block0(v0: i32):
|
|
v1 = global_value.i64 gv0
|
|
return v1
|
|
}
|
|
|
|
; pushq %rbp
|
|
; movq %rsp, %rbp
|
|
; block0:
|
|
; elf_tls_get_addr User { namespace: 1, index: 0 }
|
|
; movq %rbp, %rsp
|
|
; popq %rbp
|
|
; ret
|
|
|