[PATCH] D148980: [X86] Machine combine vnni instruction.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 22 02:10:43 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/X86/avxvnni-combine.ll:2
 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=alderlake | FileCheck %s
 
----------------
Add AVX512-VNNI support as well?


================
Comment at: llvm/test/CodeGen/X86/avxvnni-combine.ll:11
 ;     return c;
 ; }
 
----------------
Please can you add test coverage for a case where there isn't the cross-loop dependency?
```
auto bar(int cnt, __m256i *c, __m256i b, __m256i *p) {
    for (int i = 0; i < cnt; ++i) {
        __m256i a = p[i];
        __m256i m = _mm256_madd_epi16 (b, a);
        c[i] = _mm256_add_epi32(m, c[i]);
    }
}
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148980/new/

https://reviews.llvm.org/D148980



More information about the llvm-commits mailing list