[PATCH] D82550: [SLPVectorizer] handle vectorized lib functions
    Alexey Bataev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 25 08:00:51 PDT 2020
    
    
  
ABataev added inline comments.
================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:3035-3036
+
+      if (!VecFunc && !isTriviallyVectorizable(ID))
+      {
         BS.cancelScheduling(VL, VL0);
----------------
Formatting
================
Comment at: llvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions.ll:12
 ; Accelerate provides sin() for <4 x float>
+define <4 x float> @int_sin_4x(<4 x float>* %a) {
+; CHECK-LABEL: @int_sin_4x(
----------------
Pre-commit the new tests with the current results to see the changes
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82550/new/
https://reviews.llvm.org/D82550
    
    
More information about the llvm-commits
mailing list