[PATCH] D130115: [DAGCombiner] More load-store forwarding for big-endian

Roland Froese via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 12:52:31 PDT 2022


RolandF created this revision.
Herald added subscribers: ecnelises, atanasyan, jrtc27, kbarton, hiraditya, nemanjai, sdardis.
Herald added a project: All.
RolandF requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Get some load-store forwarding cases for big-endian where a larger store covers a smaller load, and the offset would be 0 and handled on little-endian but on big-endian the offset is adjusted to be non-zero.  The idea is just to shift the data to make it look like the offset 0 case.


https://reviews.llvm.org/D130115

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/load-store-forwarding.ll
  llvm/test/CodeGen/Mips/cconv/vector.ll
  llvm/test/CodeGen/PowerPC/aix-cc-byval.ll
  llvm/test/CodeGen/PowerPC/ppc64-byval-larger-struct.ll
  llvm/test/CodeGen/PowerPC/ppc64-byval-multi-store.ll
  llvm/test/CodeGen/PowerPC/pr45301.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130115.445912.patch
Type: text/x-patch
Size: 14559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220719/69aa94e7/attachment.bin>


More information about the llvm-commits mailing list