[all-commits] [llvm/llvm-project] 296671: [LoopUnroll] Store more information in UnrollCostE...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Sep 27 03:06:47 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 296671f059198185bedc3eba80056ebf4bc7ad30
      https://github.com/llvm/llvm-project/commit/296671f059198185bedc3eba80056ebf4bc7ad30
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-09-27 (Wed, 27 Sep 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/UnrollLoop.h
    M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
    M llvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

  Log Message:
  -----------
  [LoopUnroll] Store more information in UnrollCostEstimator (NFCI)

Instead of having ApproximateLoopSize() use a bunch of out parameters,
from which we later construct an UnrollCostEstimator, directly
construct UnrollCostEstimator which holds all the information
derived from loop analysis. This makes it easier to add additional
metrics in the future.




More information about the All-commits mailing list