[all-commits] [llvm/llvm-project] f7a831: [LoopVectorize] Don't emit remarks about lack of s...

paulwalker-arm via All-commits all-commits at lists.llvm.org
Sun Aug 15 04:17:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f7a831daa6742cd67d24d8190093239ae4ef8774
      https://github.com/llvm/llvm-project/commit/f7a831daa6742cd67d24d8190093239ae4ef8774
  Author: Paul Walker <paul.walker at arm.com>
  Date:   2021-08-15 (Sun, 15 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/scalable-vf-hint.ll
    M llvm/test/Transforms/LoopVectorize/scalable-vf-hint.ll

  Log Message:
  -----------
  [LoopVectorize] Don't emit remarks about lack of scalable vectors unless they're specifically requested.

Previously we emitted a "does not support scalable vectors"
remark for all targets whenever vectorisation is attempted. This
pollutes the output for architectures that don't support scalable
vectors and is likely confusing to the user.

Instead this patch introduces a debug message that reports when
scalable vectorisation is allowed by the target and only issues
the previous remark when scalable vectorisation is specifically
requested, for example:

  #pragma clang loop vectorize_width(2, scalable)

Differential Revision: https://reviews.llvm.org/D108028




More information about the All-commits mailing list