[all-commits] [llvm/llvm-project] 18c8ed: [DAG] ReduceLoadOpStoreWidth - replace getABITypeA...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Sep 25 10:36:33 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18c8ed54160bec12344288c6993b0f548fbe809e
      https://github.com/llvm/llvm-project/commit/18c8ed54160bec12344288c6993b0f548fbe809e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-09-25 (Sat, 25 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/i1narrowfail.ll
    M llvm/test/CodeGen/X86/narrow_op-1.ll

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

One of the cases identified in PR45116 - we don't need to limit store narrowing to ABI alignment, we can use allowsMemoryAccess - which tests using getABITypeAlign, but also checks if a target permits (fast) misaligned memory access by checking allowsMisalignedMemoryAccesses as a fallback.




More information about the All-commits mailing list