[LangRef] Update shufflevector's semantics to return poison if the mask is undef
authorManuelJBrito <manuel.brito@tecnico.ulisboa.pt>
Thu, 27 Apr 2023 17:11:14 +0000 (18:11 +0100)
committerManuelJBrito <manuel.brito@tecnico.ulisboa.pt>
Fri, 28 Apr 2023 09:52:00 +0000 (10:52 +0100)
commit575fdea70a86f68b0d303a9a3273fc47f810628a
treec70caa868895585ac5c28f5c9242dcbab3aaba03
parent07e5f57df4bf0410fdb772770696a1ed85762e86
[LangRef] Update shufflevector's semantics to return poison if the mask is undef

This patch changes the shufflevector's semantics to yield poison if the mask is undefined.
This allows the extraction of shufflevectors while also opening the door for more
optimization opportunities due to the fact that poison is more undefined than undef.

Differential Revision: https://reviews.llvm.org/D148637
llvm/docs/LangRef.rst