[PATCH] D57059: [SLP] Initial support for the vectorization of the non-power-of-2 vectors.
    Alexey Bataev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Feb 22 06:38:15 PST 2021
    
    
  
ABataev added a comment.
In D57059#2578770 <https://reviews.llvm.org/D57059#2578770>, @anton-afanasyev wrote:
>> Actually, it is not reducing. This is how test-suite python script works. So, here lhs - number of instructions after this patch, rhs - before. And the less relative number, the more vector instructions we actually generate.
>
> Oh, I see. There are still several reducing cases though.
Actually, no. I compared the resulting IR files for these cases - they are absolutely the same as before. It is just we generating fewer ExtractElement/InsertElement instructions and directly emit Shuffle instructions in some cases. That's why it seems it generates fewer vector instructions though it is not.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57059/new/
https://reviews.llvm.org/D57059
    
    
More information about the llvm-commits
mailing list