[all-commits] [llvm/llvm-project] ced90d: [FuncSpec] Improve the accuracy of the cost model.

Alexandros Lamprineas via All-commits all-commits at lists.llvm.org
Wed May 24 03:54:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ced90d1ff64a89a13479a37a3b17a411a3259f9f
      https://github.com/llvm/llvm-project/commit/ced90d1ff64a89a13479a37a3b17a411a3259f9f
  Author: Alexandros Lamprineas <alexandros.lamprineas at arm.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/FunctionSpecialization.h
    M llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
    M llvm/unittests/Transforms/IPO/CMakeLists.txt
    A llvm/unittests/Transforms/IPO/FunctionSpecializationTest.cpp

  Log Message:
  -----------
  [FuncSpec] Improve the accuracy of the cost model.

Instead of blindly traversing the use-def chain of constant arguments,
compute known constants along the way. Stop as soon as a user cannot
be replaced by a constant. Keep it light-weight by handling some basic
instruction types.

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




More information about the All-commits mailing list