[PATCH] D140347: TargetLowering: Teach DemandedBits about VSCALE

Saleem Abdulrasool via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 13:41:28 PST 2022


compnerd added a comment.

In D140347#4009008 <https://reviews.llvm.org/D140347#4009008>, @tschuett wrote:

> There is as `trySextValue` in APInt: https://reviews.llvm.org/D139683. Maybe you need a `tryMul`.

>From a look, that seems to do what this is currently doing - extending to 64-bits.  It feels that both Craig and I want a tighter bounds on the bit width to compute the scale.  But, I can certainly see the value in having a `tryMul` to mirror the `trySextValue`.


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

https://reviews.llvm.org/D140347



More information about the llvm-commits mailing list