[all-commits] [llvm/llvm-project] 4ed47d: [SVE][CodeGen] Fix DAGCombiner::ForwardStoreValueT...

david-arm via All-commits all-commits at lists.llvm.org
Tue Oct 6 00:22:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4ed47d50ea819fc3cf7341e86e947fef920743df
      https://github.com/llvm/llvm-project/commit/4ed47d50ea819fc3cf7341e86e947fef920743df
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-10-06 (Tue, 06 Oct 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/AArch64/sve-forward-st-to-ld.ll

  Log Message:
  -----------
  [SVE][CodeGen] Fix DAGCombiner::ForwardStoreValueToDirectLoad for scalable vectors

In DAGCombiner::ForwardStoreValueToDirectLoad I have fixed up some
implicit casts from TypeSize -> uint64_t and replaced calls to
getVectorNumElements() with getVectorElementCount(). There are some
simple cases of forwarding that we can definitely support for
scalable vectors, i.e. when the store and load are both scalable
vectors and have the same size. I have added tests for the new
code paths here:

  CodeGen/AArch64/sve-forward-st-to-ld.ll

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




More information about the All-commits mailing list