[PATCH] D98249: [SVE] Suppress vselect warning from incorrect interface call

Nashe Mncube via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 04:19:15 PST 2021


nasherm created this revision.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: efriedma.
nasherm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98249

Files:
  llvm/include/llvm/CodeGen/ValueTypes.h
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/vselect-sve-interface-warnings.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98249.329291.patch
Type: text/x-patch
Size: 4422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210309/749c88c7/attachment.bin>


More information about the llvm-commits mailing list