[PATCH] D127392: [InstCombine] Combine consecutive loads which are being merged to form a wider load.

Biplob Mishra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 03:02:38 PDT 2022


bipmis updated this revision to Diff 443893.
bipmis set the repository for this revision to rG LLVM Github Monorepo.
bipmis added a comment.

A simple implementation in AggressiveInstCombine which handles the forward consecutive load sequences as provided in the tests. 
The implementation is limited to a specific consecutive load pattern which reduces to a combined load only(One and only use of individual loads is to generate a wider load). This is not a generic LoadCombine as combining loads with other uses can result in poison propagation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127392

Files:
  llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  llvm/test/Transforms/AggressiveInstCombine/or-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127392.443893.patch
Type: text/x-patch
Size: 12783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/265f65b6/attachment.bin>


More information about the llvm-commits mailing list