[PATCH] D158487: [PowerPC][altivec] Optimize codegen of vec_promote

Kai Luo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 23:13:12 PDT 2023


lkail created this revision.
lkail added reviewers: nemanjai, shchenz, stefanp, PowerPC, amyk.
Herald added a subscriber: kbarton.
Herald added a project: All.
lkail requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158487

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158487.552225.patch
Type: text/x-patch
Size: 15845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230822/bed605be/attachment-0001.bin>


More information about the cfe-commits mailing list