[PATCH] D148637: [LangRef] Update shufflevector's semantics to return poison if the mask is undef

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 26 00:43:25 PDT 2023


nikic added inline comments.


================
Comment at: llvm/docs/LangRef.rst:10026
+using ``undef`` for ``val`` is not recommended because it prohibits
+optimizations to '``shufflevector``' with ``poison`` masks.
+
----------------
nikic wrote:
> I don't think this sentence really adds anything. It just introduces a new ill-defined term "don't-care vector".
(The recommendation to use poison instead of undef is a general one, that applies not only to insertelement.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D148637



More information about the llvm-commits mailing list