[PATCH] D115462: [SLP]Improve shuffles cost estimation where possible.

Amy Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 27 14:08:05 PDT 2022


akhuang added a comment.

I saw another crash on chromium builds - not sure if this is related to the previous mentioned crash but here's a creduced repro:

  struct f {
    float g;
    float h;
  };
  struct j {
    j() = default;
    j(float k, float l) : c(k), d(l) {}
    j operator*(j k) const { return j(k.a + c, b + k.d); }
    float a = 1.0f;
    float b = 0.0f;
    float c = 0.0f;
    float d = 1.0f;
    float e = 0.0f;
  };
  struct m {
    j n() const;
    f o;
    j p;
  };
  j m::n() const {
    if (o.g || o.h)
      return j();
    j a;
    return p * a;
  }

build with

  clang -cc1 -O2 -vectorize-slp -emit-llvm -fno-delete-null-pointer-checks t.cpp


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115462



More information about the llvm-commits mailing list