[PATCH] D130862: [LegalizeTypes][WIP] Improve splitting for urem/udiv by constant for some constants.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 8 06:23:34 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:7155
+ return false;
+
+ auto *CN = dyn_cast<ConstantSDNode>(N->getOperand(1));
----------------
assert((Opcode == ISD::UREM || Opcode == ISD::UDIV || Opcode == ISD::UDIVREM) && "unsigned division expected");
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130862/new/
https://reviews.llvm.org/D130862
More information about the llvm-commits
mailing list