[PATCH] D107766: [AggressiveInstCombine] Add `lshr` and `ashr` instructions to TruncInstCombine DAG
Anton Afanasyev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 13 23:20:01 PDT 2021
anton-afanasyev added a comment.
>> Hmm, how could we compute knownbits of the shift amount at compile time? Do you mean analyzing DAG for the shift amount Value, taking knowbits recursively?
>
> You've seen `llvm::computeKnownBits()`, right?
Thanks, used it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107766/new/
https://reviews.llvm.org/D107766
More information about the llvm-commits
mailing list