[PATCH] D125198: [InstCombine] ((A + B) + C) + A --> (A << 1) + (B + C)

Chenbing.Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 9 01:38:27 PDT 2022


Chenbing.Zheng abandoned this revision.
Chenbing.Zheng added a comment.

In D125198#3499998 <https://reviews.llvm.org/D125198#3499998>, @RKSimon wrote:

> What's the motiviation for this patch? I notice we already get the shift+add pattern: https://clang.godbolt.org/z/58c6e9jbj

I just notice the 'todo' left in add.ll. According to what you describe, we already have pattern to implement it, so I will abandant this patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125198



More information about the llvm-commits mailing list