[PATCH] D152660: [LV] Fold Add/Mul with neutral elements.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 11 15:23:37 PDT 2023


fhahn created this revision.
fhahn added reviewers: reames, gilr, rengolin, Ayal.
Herald added subscribers: luke, StephenFan, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: All.
fhahn requested review of this revision.
Herald added subscribers: pcwang-thead, MaskRay.
Herald added a project: LLVM.

Building on D152659 <https://reviews.llvm.org/D152659>, fold add/mul with their neutral elements.

There is a large number of tests that need updating, which I will do
if/once there's agreement on the direction. The missing fold was pointed
out in D147783 <https://reviews.llvm.org/D147783>

Depends on D152659 <https://reviews.llvm.org/D152659>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152660

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/RISCV/strided-accesses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152660.530345.patch
Type: text/x-patch
Size: 35817 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230611/b10d793b/attachment.bin>


More information about the llvm-commits mailing list