This repository was archived by the owner on Dec 22, 2021. It is now read-only.
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
Inefficient x64 codegen for integer comparisons #188
Open
Description
In both cranelift and v8, unsigned integer comparison are lowered to more than 1instruction:
- unsigned greater/less-than takes 4 instructions; e.g. cranelift and v8
- both unsigned and signed greater/less-than-or-equal take 2 instructions; e.g. cranelift and v8
These seem like high-use instructions and I wonder if there is any good way to get around this inefficiency.