[PATCH] D147108: [InstCombine] Add transforms for `(rem (shl Y, X), (shl Z, X))`
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 19 05:30:11 PDT 2023
sdesmalen added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:1808
+ ShiftByX = true;
+ } else {
return nullptr;
----------------
goldstein.w.n wrote:
> sdesmalen wrote:
> > nit: unnecessary curly braces (same above)
> IIRC, style is if any of the `if` need a curly, then all should have.
In this case none of the blocks needs the curly braces if you change the first block to `; // pass` ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147108/new/
https://reviews.llvm.org/D147108
More information about the llvm-commits
mailing list