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.
Paths
| Differential D100604
[PowerPC] Improve codegen for int-to-fp conversion of subword vector extract AcceptedPublic Authored by Conanap on Apr 15 2021, 3:52 PM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.May 7 2021, 6:34 AM
Revision Contents
Diff 337922 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
|