[all-commits] [llvm/llvm-project] ac2a1e: [SVE] Suppress vselect warning from incorrect inte...

Nashe Mncube via All-commits all-commits at lists.llvm.org
Wed Mar 24 07:35:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac2a1e959690e8e5243db878bfd114b72a8c4be5
      https://github.com/llvm/llvm-project/commit/ac2a1e959690e8e5243db878bfd114b72a8c4be5
  Author: Nashe Mncube <nashe.mncube at arm.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    A llvm/test/CodeGen/AArch64/sve-cmp-select.ll

  Log Message:
  -----------
  [SVE] Suppress vselect warning from incorrect interface call

The VSelectCombine handler within AArch64ISelLowering,
uses an interface call which only expects fixed vectors.
This generates a warning when the call is made on a
scalable vector. This warning has been suppressed with this change,
by using the ElementCount interface, which supports both fixed and scalable vectors.
I have also added a regression test which recreates the warning.

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




More information about the All-commits mailing list