[all-commits] [llvm/llvm-project] aa00fb: [LV] Use umax(VF * UF, MinProfTC) for scalable vec...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jul 15 10:23:41 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aa00fb02c98ad702b3b5cd4dc95025ebbe70acb3
      https://github.com/llvm/llvm-project/commit/aa00fb02c98ad702b3b5cd4dc95025ebbe70acb3
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-07-15 (Fri, 15 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/sve-runtime-check-size-based-threshold.ll

  Log Message:
  -----------
  [LV] Use umax(VF * UF, MinProfTC) for scalable vectors.

For scalable vectors, it is not sufficient to only check
MinProfitableTripCount if it is >= VF.getKnownMinValue() * UF, because
this property may not holder for larger values of vscale. In those
cases, compute umax(VF * UF, MinProfTC) instead.

This should fix
https://lab.llvm.org/buildbot/#/builders/197/builds/2262




More information about the All-commits mailing list