[PATCH] D100604: [PowerPC] Improve codegen for int-to-fp conversion of subword vector extract
Albion Fung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 15 15:52:26 PDT 2021
Conanap created this revision.
Conanap added reviewers: nemanjai, saghir, PowerPC.
Conanap added projects: LLVM, PowerPC, clang.
Herald added a subscriber: kbarton.
Conanap requested review of this revision.
The following example generates code that can be completed in two instructions instead:
void testutof(vector unsigned short a, float *ptr) {
*ptr = a[0];
}
The patch improves this code gen.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100604
Files:
llvm/lib/Target/PowerPC/PPCInstrVSX.td
llvm/test/CodeGen/PowerPC/uint-to-fp-v4i32.ll
llvm/test/CodeGen/PowerPC/vec_conv_i16_to_fp32_elts.ll
llvm/test/CodeGen/PowerPC/vec_conv_i8_to_fp32_elts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100604.337922.patch
Type: text/x-patch
Size: 16809 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210415/54603fec/attachment.bin>
More information about the llvm-commits
mailing list