Rework the switch module in cranelift-frontend in terms of brif (#5644)
Rework the compilation strategy for switch to: * use brif instead of brz and brnz * generate tables inline, rather than delyaing them to after the decision tree has been generated * avoid allocating new vectors by using slices into the sorted contiguous ranges * avoid generating some unconditional jumps * output differences in test output using the similar crate for easier debugging
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -622,6 +622,7 @@ dependencies = [
|
||||
"cranelift-codegen",
|
||||
"hashbrown",
|
||||
"log",
|
||||
"similar",
|
||||
"smallvec",
|
||||
"target-lexicon",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user