[PATCH] D122194: [SelectionDAG] Store LeadingZero count in LiveOutInfo instead of KnownBits.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 22 10:27:52 PDT 2022


RKSimon added a comment.

In D122194#3399998 <https://reviews.llvm.org/D122194#3399998>, @craig.topper wrote:

> In D122194#3399974 <https://reviews.llvm.org/D122194#3399974>, @RKSimon wrote:
>
>> Alignment, one bit and known negative values would all be nice to have - I'm just not sure if they'd make a huge difference.
>
> For "one bit" would we have to call isKnownToBeAPowerOfTwo in addition to computeKnownBits?

one bit I meant KnownBits::countMaxPopulation() == 1 (i.e. all but one bit is known zero - it might be pow2 or zero)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122194/new/

https://reviews.llvm.org/D122194



More information about the llvm-commits mailing list