[PATCH] D132553: [instcombine] Test for zero initialisation optimisation of integer product

Zain Jaffal via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 24 06:17:49 PDT 2022


zjaffal created this revision.
zjaffal added a reviewer: fhahn.
Herald added a project: All.
zjaffal requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Following the work on `D131672` we do the same optimisations for integer products.
We add tests to check if a loop gets removed if we repeatdly multiply an array elements with an accumulator initalised to zero


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132553

Files:
  llvm/test/Transforms/InstCombine/remove-loop-phi-fastmul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132553.455180.patch
Type: text/x-patch
Size: 6838 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220824/f9348102/attachment.bin>


More information about the llvm-commits mailing list