HomePhabricator

[Support] make countLeadingZeros() and countTrailingZeros() return unsigned

Description

[Support] make countLeadingZeros() and countTrailingZeros() return unsigned

This matches countLeadingOnes() and countTrailingOnes(), and
APInt's countLeadingZeros() and countTrailingZeros().

(as well as __builtin_clzll())

Details

Committed
shawnlMay 26 2019, 6:49 AM
Parents
rL361723: [ValueTracking] Base computeOverflowForUnsignedMul() on ConstantRange code; NFCI
Branches
Unknown
Tags
Unknown

Event Timeline

nikic added a subscriber: nikic.May 26 2019, 7:01 AM

When committing changes, please add something like

Differential Revision: https://reviews.llvm.org/D60823

as the last line. This will link the commit to the review and also automatically close it.