llvm-project
2b419854 - [DAG] Fix incorrect ForSigned handling in computeConstantRange calls (#188889)

Commit
30 days ago
[DAG] Fix incorrect ForSigned handling in computeConstantRange calls (#188889) Fix two places where ForSigned was incorrectly passed to computeConstantRange, causing wrong signed/unsigned range computation. In computeConstantRangeIncludingKnownBits (DemandedElts overload), the call omitted ForSigned, so Depth (unsigned) was implicitly converted to bool for the ForSigned parameter. Introduced in a6a66a4e6915. In visitIMINMAX, the call always passed ForSigned=false, even when folding SMAX/SMIN which query signed bounds from the resulting range.
Author
Parents
Loading