[all-commits] [llvm/llvm-project] 6de0b5: [DAG] TransformFPLoadStorePair - replace getABITyp...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Tue Aug 24 05:12:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6de0b551884f2af3da6cb77cca5532b05c0c2192
      https://github.com/llvm/llvm-project/commit/6de0b551884f2af3da6cb77cca5532b05c0c2192
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-08-24 (Tue, 24 Aug 2021)

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

  Log Message:
  -----------
  [DAG] TransformFPLoadStorePair - replace getABITypeAlign with allowsMemoryAccess (PR45116)

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 (fast) misaligned memory loads by checking allowsMisalignedMemoryAccesses as a fallback.

Differential Revision: https://reviews.llvm.org/D108318




More information about the All-commits mailing list