[PATCH] D143014: Add constant combines for `(urem/srem (mul X, Y), (mul X, Z))`
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 15:39:31 PST 2023
goldstein.w.n added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:1697
+ // C/D) can be our X.
+ if (A == C || A == D) {
+ X = A;
----------------
sdesmalen wrote:
> When I comment this part of the condition out, all tests still pass.
> When I comment this part of the condition out, all tests still pass.
Added additional tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143014/new/
https://reviews.llvm.org/D143014
More information about the llvm-commits
mailing list