[PATCH] D35498: [LoopVectorizer] Use two step casting for float to pointer type.
    Max Kazantsev via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Jul 19 00:56:54 PDT 2017
    
    
  
mkazantsev added inline comments.
================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:3340
+                                           SrcElemTy->getPrimitiveSizeInBits());
+      VectorType *VecIntTy = VectorType::get(IntTy, VF);
+      CastVal = Builder.CreateBitOrPointerCast(V, VecIntTy);
----------------
You can sink these 3 lines and last 3 lines of "else" branch to after the "if" (if IntTy is decpared above the if).
https://reviews.llvm.org/D35498
    
    
More information about the llvm-commits
mailing list