[PATCH] D158487: [PowerPC][altivec] Optimize codegen of vec_promote
Qiu Chaofan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 01:33:14 PDT 2023
qiucf added inline comments.
================
Comment at: clang/lib/Headers/altivec.h:14662
+ vector unsigned char __res =
+ __builtin_shufflevector(__zero, __zero, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1);
----------------
Could we just define it without initialization? This can also make undefined vector.
================
Comment at: llvm/test/CodeGen/PowerPC/vec-promote.ll:1
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
+; RUN: llc -mtriple=powerpc64-unknown-unknown -verify-machineinstrs -mcpu=pwr8 \
----------------
We don't need this file because (1) no backend codegen changed; (2) further changes to `altivec.h` will not change this file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158487/new/
https://reviews.llvm.org/D158487
More information about the cfe-commits
mailing list