[all-commits] [llvm/llvm-project] cd0c00: [LV] Move exact FP math check out of Requirements.

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Mar 24 04:02:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd0c00c9fe39a5dff9c776e5727fdf38be7e8132
      https://github.com/llvm/llvm-project/commit/cd0c00c9fe39a5dff9c776e5727fdf38be7e8132
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-03-24 (Wed, 24 Mar 2021)

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

  Log Message:
  -----------
  [LV] Move exact FP math check out of Requirements.

We know if the loop contains FP instructions preventing vectorization
after we are done with legality checks. This patch updates the code the
check for un-vectorizable FP operations earlier, to avoid unnecessarily
running the cost model and picking a vectorization factor. It also makes
the code more direct and moves the check to a position where similar
checks are done.

I might be missing something, but I don't see any reason to handle this
check differently to other, similar checks.

Reviewed By: lebedev.ri

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




More information about the All-commits mailing list