[all-commits] [llvm/llvm-project] 40d51d: [SelectionDAG] Use UnknownSize for VP memory ops

Fraser Cormack via All-commits all-commits at lists.llvm.org
Tue Dec 7 03:00:36 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40d51de5cb722d464f82b8116aec8614c1158f1b
      https://github.com/llvm/llvm-project/commit/40d51de5cb722d464f82b8116aec8614c1158f1b
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2021-12-07 (Tue, 07 Dec 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

  Log Message:
  -----------
  [SelectionDAG] Use UnknownSize for VP memory ops

In the style of D113888, this patch updates the various VP memory
operations (load, store, gather, scatter) to use UnknownSize. This is
for the same reason as for masked loads and stores: the number of
elements accessed is not generally known at compile time.

This is somewhat pessimistic in the sense that we may still find
un-canonicalized intrinsics featuring both an all-true mask and an EVL
equal to the vector size. Arguably those should be canonicalized before
the SelectionDAG, so those have been left for future work.

Reviewed By: craig.topper

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




More information about the All-commits mailing list