[PATCH] Scalarize select vector arguments when extracted

Matt Arsenault Matthew.Arsenault at amd.com
Tue Sep 24 15:07:37 PDT 2013


On 09/10/2013 01:51 PM, Nadav Rotem wrote:
> I am sorry for not being clear. In that email I meant that some basic 
> vectorization or vectorization cleanups (such as getting rid of 
> insert-extract sequences) can be done in InstCombine. This should only 
> be viewed as canonicalization. In your patch you are scalarizing the 
> code in preparation for the SLP-vectorizer to handle the scalar code.

What makes select different here from other instructions? The code 
before this also scalarizes extractelement + other instruction types. 
(using a CheapToScalarize() check for BinaryOperator, but not CastInst)




More information about the llvm-commits mailing list