[PATCH] D143409: [SCEV][IndVarSimplify] Support known dominating slt/ult elimination
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 7 04:25:31 PST 2023
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyIndVar.cpp:936
if (BinaryOperator *BO = dyn_cast<BinaryOperator>(UseInst)) {
- if ((isa<OverflowingBinaryOperator>(BO) &&
- strengthenOverflowingOperation(BO, IVOperand)) ||
- (isa<ShlOperator>(BO) && strengthenRightShift(BO, IVOperand))) {
+ if (strengthenBinaryOp(BO, IVOperand)) {
// re-queue uses of the now modified binary operator and fall
----------------
Factoring out this check into `strengthenBinaryOp` can be split off as a NFC patch. Then, make a functional patch that introduces its new use.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143409/new/
https://reviews.llvm.org/D143409
More information about the llvm-commits
mailing list