[PATCH] D136015: [InstCombine] Fold series of instructions into mull

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 23:33:06 PDT 2022


Allen updated this revision to Diff 469121.
Allen marked 2 inline comments as done.
Allen added a comment.

1、 use BinaryOperator::CreateMul() to avoid the use of replaceInstUsesWith()
2、 Add 3 more cases according comment
3、 Use m_CombineOr to  match that with minimal code
4、create a static function above InstCombinerImpl::visitAdd()


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

https://reviews.llvm.org/D136015

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136015.469121.patch
Type: text/x-patch
Size: 8588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221020/103e74c6/attachment.bin>


More information about the llvm-commits mailing list