[all-commits] [llvm/llvm-project] 86137f: [CodeGen] Add scalable vector support for lowering...

david-arm via All-commits all-commits at lists.llvm.org
Fri Nov 26 00:44:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86137fb7229363fef9a4bbb732dc13f7cb1c5dfd
      https://github.com/llvm/llvm-project/commit/86137fb7229363fef9a4bbb732dc13f7cb1c5dfd
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-11-26 (Fri, 26 Nov 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    A llvm/test/CodeGen/AArch64/active_lane_mask.ll

  Log Message:
  -----------
  [CodeGen] Add scalable vector support for lowering of llvm.get.active.lane.mask

Currently the generic lowering of llvm.get.active.lane.mask is done
in SelectionDAGBuilder::visitIntrinsicCall and currently assumes
only fixed-width vectors are used. This patch changes the code to be
more generic and support scalable vectors too. I have added tests
for SVE here:

  CodeGen/AArch64/active_lane_mask.ll

although the code quality leaves a lot to be desired. The code will
be improved significantly in a later patch that makes use of the
SVE whilelo instruction.

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




More information about the All-commits mailing list