[PATCH] D147152: [LoopVectorize] Fix zext/sext cost calculations when types are shrunk

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 5 05:24:57 PDT 2023


kmclaughlin accepted this revision.
kmclaughlin added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:7372
       if (Opcode == Instruction::Trunc) {
         SrcVecTy = smallestIntegerVectorType(SrcVecTy, MinVecTy);
         VectorTy =
----------------
Maybe not as part of this patch, but should we also leave SrcVecTy unchanged for truncates too?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147152/new/

https://reviews.llvm.org/D147152



More information about the llvm-commits mailing list