[PATCH] D140347: SelectionDAG: Teach ComputeKnownBits about VSCALE
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 26 00:43:07 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:3121
+
+ break;
+ }
----------------
Can this whole block be reduced to something like this?
```
const Function &F = getMachineFunction().getFunction();
const APInt &Multiplier = Op.getConstantOperandAPInt(0);
Known = getVScaleConstantRange(&F, BitWidth).mul(Multiplier).toKnownBits();
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140347/new/
https://reviews.llvm.org/D140347
More information about the llvm-commits
mailing list