[PATCH] D68360: PR41162 Implement LKK remainder and divisibility algorithms [urem]
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 15:20:47 PDT 2019
lebedev.ri added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:4941-4943
+ if (!D.isStrictlyPositive() || D.isMaxValue() || D.isOneValue() ||
+ D.isPowerOf2()) {
+ // Divisor must be in the range of (1,2^N)
----------------
TG908 wrote:
> lebedev.ri wrote:
> > There is no such restriction.
> What do you mean?
> In my code?
> In LKK?
I haven't read the paper, so i'm only looking at this code,
and they don't incur any restrictions on the divisor: https://rise4fun.com/Alive/HiT
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68360/new/
https://reviews.llvm.org/D68360
More information about the llvm-commits
mailing list