[PATCH] D147108: [InstCombine] Add transforms for `(rem (shl Y, X), (shl Z, X))`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 08:10:33 PDT 2023


goldstein.w.n added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:1808
+    ShiftByX = true;
+  } else {
     return nullptr;
----------------
sdesmalen wrote:
> 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` ?
> In this case none of the blocks needs the curly braces if you change the first block to `; // pass` ?

Sure, will do. I'll update when I rebase later. Any chance you will also be able to review D143417?


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