This is an archive of the discontinued LLVM Phabricator instance.

APInt: Slightly simplify countLeadingZerosSlowCase()
ClosedPublic

Authored by MatzeB on Jan 26 2016, 8:09 PM.

Details

Summary

We always clear the unused bits in the most signifant word so there is
no need to mask them out in countLeadingZerosSlowCase().

This is a drive-by simplification while I was readining APInt code...

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 46095.Jan 26 2016, 8:09 PM
MatzeB retitled this revision from to APInt: Slightly simplify countLeadingZerosSlowCase().
MatzeB updated this object.
MatzeB added reviewers: bkramer, zhousheng00, foad, echristo.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
bkramer accepted this revision.Feb 12 2016, 6:43 AM
bkramer edited edge metadata.

lg, with one minor comment.

lib/Support/APInt.cpp
692 ↗(On Diff #46095)

Typo: signifant 🐘

This revision is now accepted and ready to land.Feb 12 2016, 6:43 AM
This revision was automatically updated to reflect the committed changes.