<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 8, 2014 at 10:45 AM, Nadav Rotem <span dir="ltr"><<a href="mailto:nrotem@apple.com" target="_blank">nrotem@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.  </blockquote></div><br></div><div class="gmail_extra">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.</div></div>