[PATCH] D123453: [InstCombine] Fold mul nuw+lshr exact to a single multiplication when the latter is a factor

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 10:47:30 PDT 2022


bcl5980 marked 6 inline comments as done.
bcl5980 added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp:1176
+
+      // lshr exact (mul nuw x, (c << ShAmtC)), ShAmtC -> mul nuw, c
+      if (Op0->hasOneUse() && I.isExact()) {
----------------
xbolva00 wrote:
> Once again:
> 
> mul nuw x, c
Sorry for that. Miss again


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123453/new/

https://reviews.llvm.org/D123453



More information about the llvm-commits mailing list