[PATCH] D124183: [InstCombine] Add one use limitation for (X * C2) << C1 --> X * (C2 << C1)

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 21 11:13:30 PDT 2022


bcl5980 added a comment.

One other reason I insist one-use is we can give programmer choice. If we remove one-use, there is no choice for programmer.
https://godbolt.org/z/Wrzh5aczf
https://godbolt.org/z/1nGf88E87


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124183



More information about the llvm-commits mailing list