make sure that int.clamp and double.clamp are optimised in AOT #46879
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
type-performance
Issue relates to performance or code size
These operations are quite common when dealing with UI / graphics and right now we don't provide good lowering for them.
I have even noticed that we don't always properly propagate return type even when inputs are known to be integers.
On ARM for example we could use saturating instructions when clamping to ranges with power-of-2 based bounaries.
The text was updated successfully, but these errors were encountered: