Description[turbofan] Improve lowering for NumberAbs to Int32Abs.
We can compute the absolute integer value w/o any conditional execution
by using the bit trick formula
let sign = input >> 31 in
(input ^ sign) - sign
which generates fairly decent code on all supported architectures.
R=jarin@chromium.org
Committed: https://crrev.com/085ec5c25f9dd1cc51914d90c3e0aa1c45d002fe
Cr-Commit-Position: refs/heads/master@{#37965}
Patch Set 1 #
Messages
Total messages: 12 (6 generated)
|