[PATCH] D108318: [DAG] TransformFPLoadStorePair - replace getABITypeAlign with allowsMemoryAccess (PR45116)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 18 12:11:38 PDT 2021


RKSimon created this revision.
RKSimon added reviewers: hfinkel, amyk, nemanjai, shchenz.
Herald added subscribers: ecnelises, hiraditya.
RKSimon requested review of this revision.
Herald added a project: LLVM.

One of the cases identified in PR45116 - we don't need to limit load combines (in this case for fp->int load/store copies) to ABI alignment, we can use allowsMemoryAccess - which tests using getABITypeAlign, but also checks if a target permits misaligned memory loads by checking allowsMisalignedMemoryAccesses as a fallback.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108318

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/PowerPC/2007-09-08-unaligned.ll
  llvm/test/CodeGen/PowerPC/unaligned.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108318.367297.patch
Type: text/x-patch
Size: 3915 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/2dd4bed5/attachment.bin>


More information about the llvm-commits mailing list