[all-commits] [llvm/llvm-project] 96ef62: [AArch64] Cast predicate operand of SVE gather loa...

Momchil Velikov via All-commits all-commits at lists.llvm.org
Mon Nov 13 08:01:22 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96ef623a7525f71184b6111f8389e45260ef13ff
      https://github.com/llvm/llvm-project/commit/96ef623a7525f71184b6111f8389e45260ef13ff
  Author: Momchil Velikov <momchil.velikov at arm.com>
  Date:   2023-11-13 (Mon, 13 Nov 2023)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp

  Log Message:
  -----------
  [AArch64] Cast predicate operand of SVE gather loads/scater stores to the parameter type of the intrinsic (NFC) (#71289)

When emitting LLVM IR for gather loads/scatter stores, the predicate
parameter is cast to a type that depends on the loaded, resp. stored
type. That's correct for operation where we have a predicate per lane,
however it is not correct for quadword loads and stores (`LD1Q`, `ST1Q`)
where the predicate is per 128-bit chunk, independent from the ACLE
intrinsic type.

This can be universally handled by cast to the corresponding parameter
type of the intrinsic. The intrinsic itself should be defined in a way
that enforces relations between parameter types.




More information about the All-commits mailing list