[PATCH] D97861: [LoopVectorize][NFC] Refactor code to use IRBuilder::CreateStepVector

Christopher Tetreault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 3 09:56:16 PST 2021


ctetreau added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:2243
   // Create and check the types.
   auto *ValVTy = cast<FixedVectorType>(Val->getType());
+  ElementCount VLen = ValVTy->getElementCount();
----------------
NIT: Since the goal is to eventually support scalable vectors, this cast to FixedVectorType is counterproductive.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97861



More information about the llvm-commits mailing list