[PATCH] D91806: [SVE] Remove warnings from release notes example on SVE ACLE.

Francesco Petrogalli via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 07:00:26 PST 2020


fpetrogalli updated this revision to Diff 306684.
fpetrogalli added a comment.

I have removed the C test, as the LL test is enough to test the changes I have done in `Local.cpp`.

I can confirm that with this patch, the release note ton'r raise any warnings when compiling with debug info:

  frapet01 at man-08:~/projects/upstream-clang/build-clang$ cat ../release-notes.c
  #include <arm_sve.h>
  
  void VLA_add_arrays(double *x, double *y, double *out, unsigned N) {
    for (unsigned i = 0; i < N; i += svcntd()) {
      svbool_t Pg = svwhilelt_b64(i, N);
      svfloat64_t vx = svld1(Pg, &x[i]);
      svfloat64_t vy = svld1(Pg, &y[i]);
      svfloat64_t vout = svadd_x(Pg, vx, vy);
      svst1(Pg, &out[i], vout);
    }
  }
  frapet01 at man-08:~/projects/upstream-clang/build-clang$ ./bin/clang --target=aarch64-gnu-linux -march=armv8-a+sve -c -g -S -O3 -o /dev/null ../release-notes.c
  frapet01 at man-08:~/projects/upstream-clang/build-clang$                        

When the patch will end up into a nightly build of compiler explorer, the compilation at this link should not raise any warnings: https://godbolt.org/z/zebzKM


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91806

Files:
  llvm/include/llvm/IR/Instructions.h
  llvm/include/llvm/IR/IntrinsicInst.h
  llvm/lib/IR/Instructions.cpp
  llvm/lib/IR/IntrinsicInst.cpp
  llvm/lib/Transforms/Coroutines/CoroFrame.cpp
  llvm/lib/Transforms/Utils/Debugify.cpp
  llvm/lib/Transforms/Utils/Local.cpp
  llvm/test/Transforms/InstCombine/debug-declare-no-warnings-on-scalable-vectors.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91806.306684.patch
Type: text/x-patch
Size: 9351 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/ed3b4108/attachment.bin>


More information about the llvm-commits mailing list