[PATCH] D105806: [LV] Print remark when loop cannot be vectorized due to invalid costs.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 13 08:51:03 PDT 2021


sdesmalen updated this revision to Diff 358282.
sdesmalen edited the summary of this revision.
sdesmalen added a comment.

- Added debug-info to test, and updated comment for `expectedCost`
- Changed the patch to emit individual remarks, with their corresponding debug-info, instead of a single remark where this info is all compiled together.

e.g.

t.c:4:19: remark: Instruction with invalid costs prevented vectorization at VF=(vscale x 1): load

  dst[i] = sinf(src[i]);
                ^

t.c:4:14: remark: Instruction with invalid costs prevented vectorization at VF=(vscale x 1, vscale x 2, vscale x 4): call to llvm.sin.f32

  dst[i] = sinf(src[i]);
           ^

t.c:4:12: remark: Instruction with invalid costs prevented vectorization at VF=(vscale x 1): store

  dst[i] = sinf(src[i]);
         ^


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105806

Files:
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105806.358282.patch
Type: text/x-patch
Size: 9185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210713/4ed2a992/attachment-0001.bin>


More information about the llvm-commits mailing list