[all-commits] [llvm/llvm-project] 4f9217: [FuncSpec] Don't specialise call sites that have t...

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Fri Sep 10 01:04:59 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f9217c5194b10f8219613506f8d701a24650bbc
      https://github.com/llvm/llvm-project/commit/4f9217c5194b10f8219613506f8d701a24650bbc
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2021-09-10 (Fri, 10 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    A llvm/test/Transforms/FunctionSpecialization/function-specialization-minsize2.ll
    A llvm/test/Transforms/FunctionSpecialization/function-specialization-minsize3.ll

  Log Message:
  -----------
  [FuncSpec] Don't specialise call sites that have the MinSize attribute set

The MinSize attribute can be attached to both the callee and the caller
in the callsite. Function specialisation was already skipped for function
declarations (callees) with MinSize. This also skips specialisations for
the callsite when it has MinSize set.

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




More information about the All-commits mailing list