[all-commits] [llvm/llvm-project] a794b6: [SCCPSolver] Move helper functions inside SCCPSolv...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Jan 23 09:42:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a794b62c0cee998d438b31e79d2c39c92d1fec36
      https://github.com/llvm/llvm-project/commit/a794b62c0cee998d438b31e79d2c39c92d1fec36
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-01-23 (Mon, 23 Jan 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/SCCPSolver.h
    M llvm/lib/Transforms/IPO/SCCP.cpp
    M llvm/lib/Transforms/Scalar/SCCP.cpp
    M llvm/lib/Transforms/Utils/SCCPSolver.cpp

  Log Message:
  -----------
  [SCCPSolver] Move helper functions inside SCCPSolver (NFC).

This patch moves a couple of helper functions from the global llvm::
namespace into the SCCPSolver class. This reduces the need for separate
SCCPSolver arguments and also limits the scope of those functions that
have quite generic names.

(The remaining isConstant and isOverdefined should ideally be removed)

Reviewed By: nikic

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




More information about the All-commits mailing list