[all-commits] [llvm/llvm-project] 9cc7eb: [SVE] Remove redundant hasBF16 calls from lowering...

paulwalker-arm via All-commits all-commits at lists.llvm.org
Thu Feb 10 06:52:48 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cc7eb0ec92dce3a7731a31c106816e0453977ce
      https://github.com/llvm/llvm-project/commit/9cc7eb0ec92dce3a7731a31c106816e0453977ce
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2022-02-10 (Thu, 10 Feb 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

  Log Message:
  -----------
  [SVE] Remove redundant hasBF16 calls from lowering code.

The are several places where hasBF16 is used to protect code that
has no requirement for the +bf16 feature.  The lowering code uses
stock SVE instructions for things like loads and stores and so is
safe even when +bf16 is not available.

NOTE: Currently the nxvbf16 type is not legal unless the +bf16
feature is available, but that isn't an issue because the affected
code is post type legalisation.

NOTE: This patch mirrors previous work that removed the same
redundant protection from isel patterns where the resulting
selection emitted stock SVE instructions.

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




More information about the All-commits mailing list