[all-commits] [llvm/llvm-project] d3ef86: [LoopUnroll] Make UnrollMaxUpperBound to be overri...

boxu.zhang via All-commits all-commits at lists.llvm.org
Thu Dec 21 00:47:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d3ef86708241a3bee902615c190dead1638c4e09
      https://github.com/llvm/llvm-project/commit/d3ef86708241a3bee902615c190dead1638c4e09
  Author: boxu.zhang <boxu-zhang at users.noreply.github.com>
  Date:   2023-12-21 (Thu, 21 Dec 2023)

  Changed paths:
    M llvm/include/llvm/Analysis/TargetTransformInfo.h
    M llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp

  Log Message:
  -----------
  [LoopUnroll] Make UnrollMaxUpperBound to be overridable by target (#76029)

The UnrollMaxUpperBound should be target dependent, since different
chips provide different register set which brings different ability of
storing more temporary values of a program. So I add a MaxUpperBound
value in UnrollingPreference which can be override by targets. All uses
of UnrollMaxUpperBound are replaced with UP.MaxUpperBound.
 
The default value is still 8 and the command line argument
'--unroll-max-upperbound' takes final effect if provided.




More information about the All-commits mailing list