[LLVMdev] Canonicalizing vector masking. (original) (raw)

Chandler Carruth chandlerc at google.com
Wed Oct 8 10:51:25 PDT 2014


On Wed, Oct 8, 2014 at 10:45 AM, Nadav Rotem <nrotem at apple.com> wrote:

I think that the pattern below should be canonicalized into a vector ’select’ instruction with a constant mask. I think that we already have code for canonicalizing select-like shuffles into selects.

It should be canonicalized to select in the IR but absolutely do not canonicalize to VSELECT in the SelectionDAG. The VSELECT node is significantly harder to analyze in the backend than the VECTOR_SHUFFLE node. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141008/a273a619/attachment.html>



More information about the llvm-dev mailing list