Part 2/2 of [ Vectorize intrinsic math function calls in SLPVectorizer ]
Splitting patch in http://reviews.llvm.org/D3535
Now that we have getIntrinsicIDForCall in VectorUtil. Use the same logic as in LoopVectorize in SLPVectorizer and use getIntrinsicIDForCall to decide if the CallInstr can be classified as an intrinsic call.
If yes calculate the appropriate cost in SLPVectorize to decide if to vectorize or not.
Thanks
Karthik Bhat
*CI2 == VL[i]. Shouldn't this be *CI?