HomePhabricator

[BasicAA] Use smul_ov helper (NFCI)

Authored by nikic on Sat, Nov 7, 8:48 AM.

Description

[BasicAA] Use smul_ov helper (NFCI)

Instead of performing the multiplication in double the bit width
and using active bits to determine overflow, use the existing
smul_ov() APInt method to detect overflow.

The smul_ov() implementation is not particularly efficient, but
it's still better than doing this a wide, usually 128-bit, type.

Details

Committed
nikicSat, Nov 7, 9:14 AM
Parents
rG9bda935289fd: [mlir][Python] Adapt to include property change in pybind11 v2.6.
Branches
Unknown
Tags
Unknown