[all-commits] [llvm/llvm-project] 1ceaec: [PowerPC][altivec] Optimize codegen of vec_promote

bzEq via All-commits all-commits at lists.llvm.org
Wed Aug 23 19:10:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ceaec3e81044d8a671b28d1f556045cf7fe6ef0
      https://github.com/llvm/llvm-project/commit/1ceaec3e81044d8a671b28d1f556045cf7fe6ef0
  Author: Kai Luo <lkail at cn.ibm.com>
  Date:   2023-08-24 (Thu, 24 Aug 2023)

  Changed paths:
    M clang/lib/Headers/altivec.h
    M clang/test/CodeGen/PowerPC/builtins-ppc-vsx.c
    A llvm/test/CodeGen/PowerPC/vec-promote.ll

  Log Message:
  -----------
  [PowerPC][altivec] Optimize codegen of vec_promote

According to https://www.ibm.com/docs/en/xl-c-and-cpp-linux/16.1.1?topic=functions-vec-promote, elements not specified by the input index argument are undefined. So that we don't need to set these elements to be zeros.

Reviewed By: nemanjai, #powerpc

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




More information about the All-commits mailing list