[all-commits] [llvm/llvm-project] 78a392: [FuncSpec] Respect MaxConstantsThreshold

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Fri Dec 17 01:46:25 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78a392cf9f3420f36e4252535d2a6792e02703fa
      https://github.com/llvm/llvm-project/commit/78a392cf9f3420f36e4252535d2a6792e02703fa
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2021-12-17 (Fri, 17 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    M llvm/test/Transforms/FunctionSpecialization/function-specialization4.ll

  Log Message:
  -----------
  [FuncSpec] Respect MaxConstantsThreshold

This is a follow up of D115458 and truncates the worklist of actual arguments
that can be specialised to 'MaxConstantsThreshold' candidates if
MaxConstantsThreshold was exceeded. Thus, this changes the behaviour of option
-func-specialization-max-constants. Before it didn't specialise at all when
this threshold was exceeded, but now it specialises up to MaxConstantsThreshold
candidates from the sorted worklist.

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




More information about the All-commits mailing list