[all-commits] [llvm/llvm-project] cb69ba: [LV] Create RT checks once VF/IC are selected, tra...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jun 24 08:42:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb69ba4faaf1de207b363b5198d33e29d0375e5d
      https://github.com/llvm/llvm-project/commit/cb69ba4faaf1de207b363b5198d33e29d0375e5d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

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

  Log Message:
  -----------
  [LV] Create RT checks once VF/IC are selected, track scalar cost.

This patch updates LV to generate runtime after the VF & IC are selected. It
allows deciding whether to vectorize with runtime checks or not based on
their cost compared to the vector loop.

It also updates VectorizationFactor to include the scalar cost.

Reviewed By: lebedev.ri, dmgreen

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




More information about the All-commits mailing list