[all-commits] [llvm/llvm-project] be9bbb: [LoopVectorize] NFC: Change selectVectorizationFac...

sdesmalen-arm via All-commits all-commits at lists.llvm.org
Thu Feb 11 00:48:45 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be9bbb57f4739e4653cee77979f6fb72310176c0
      https://github.com/llvm/llvm-project/commit/be9bbb57f4739e4653cee77979f6fb72310176c0
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2021-02-11 (Thu, 11 Feb 2021)

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

  Log Message:
  -----------
  [LoopVectorize] NFC: Change selectVectorizationFactor to work on ElementCount.

This patch is NFC and changes occurrences of `unsigned Width`
and `unsigned i` to work on type ElementCount instead.

This patch is a preparatory patch with the ultimate goal of making
`computeMaxVF()` return both a max fixed VF and a max scalable VF,
so that `selectVectorizationFactor()` can pick the most cost-effective
vectorization factor.

Reviewed By: david-arm

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




More information about the All-commits mailing list