[all-commits] [llvm/llvm-project] 9aa01c: [LV] Remove scalable constraints on creating bitcasts

huntergr-arm via All-commits all-commits at lists.llvm.org
Fri Mar 17 09:20:00 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9aa01c4e8917569a7557fe05b278fc0892c9b56a
      https://github.com/llvm/llvm-project/commit/9aa01c4e8917569a7557fe05b278fc0892c9b56a
  Author: Graham Hunter <graham.hunter at arm.com>
  Date:   2023-03-17 (Fri, 17 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Remove scalable constraints on creating bitcasts

InnerLoopVectorizer::createBitOrPointerCast only supported fixed
length vectors since it hadn't been updated. Supporting scalable
vectors is just a matter of changing types and using elementcount
instead of numelements, since there's nothing which actually relies
on knowing the exact length of the vector.

Original written by mgabka.

Split out from D145163.




More information about the All-commits mailing list