[all-commits] [llvm/llvm-project] 17b701: [LV] Collect a list of all element types found in ...

kmclaughlin-arm via All-commits all-commits at lists.llvm.org
Tue Jul 6 02:46:32 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 17b701c43ca6459db020bff075b119f33a4a8ec5
      https://github.com/llvm/llvm-project/commit/17b701c43ca6459db020bff075b119f33a4a8ec5
  Author: Kerry McLaughlin <kerry.mclaughlin at arm.com>
  Date:   2021-07-06 (Tue, 06 Jul 2021)

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

  Log Message:
  -----------
  [LV] Collect a list of all element types found in the loop (NFC)

Splits `getSmallestAndWidestTypes` into two functions, one of which now collects
a list of all element types found in the loop (`ElementTypesInLoop`). This ensures we do not
have to iterate over all instructions in the loop again in other places, such as in D102253
which disables scalable vectorization of a loop if any of the instructions use invalid types.

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D105437




More information about the All-commits mailing list