OSDN Git Service

[X86][SSE] Add 'vectorized sum' test patterns
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 11 Jan 2021 12:51:03 +0000 (12:51 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 11 Jan 2021 12:51:18 +0000 (12:51 +0000)
commit8112a2598ce180ab4cd106f154a71e813fc28d91
tree5f236a9483edd6d62a8dec0dc627637af1bfd745
parentd36e879c21c9620c9b6a1a8f45afe46379142d2f
[X86][SSE] Add 'vectorized sum' test patterns

These are often generated when building a vector from the reduction sums of independent vectors.

I've implemented some typical patterns from various v4f32/v4i32 based off current codegen emitted from the vectorizers, although these tests are more about tweaking some hadd style backend folds to handle whatever the vectorizers/vectorcombine throws at us...
llvm/test/CodeGen/X86/horizontal-sum.ll [new file with mode: 0644]