[PATCH] D96791: [SLP] Double UserCost compensation for vector store of aggregate

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 02:13:26 PST 2021


RKSimon added a comment.

Please can you cleanup pr40522.ll (remove the metatdata etc.)? Also, PR40522 notes missing fp2int vectorization - please can you add those?

  typedef int int4 __attribute__((__vector_size__(16)));
  
  void fp2int_vec1(float a, float b, float c, float d, int *p) {
    int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
    *p++ = result[0];
    *p++ = result[1];
    *p++ = result[2];
    *p++ = result[3];
  }
  
  void fp2int_vec2(float a, float b, float c, float d, int4 *p) {
    int4 result = (int4) { (int) a, (int) b, (int) c, (int) d };
    *p = result;
  }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96791



More information about the llvm-commits mailing list