[all-commits] [llvm/llvm-project] 5a3776: [SCCPSolver] Make getMRVFunctionsTracked return a ...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Wed May 21 08:56:39 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a3776af521b8ddc14a19d1954af64e2960d2397
      https://github.com/llvm/llvm-project/commit/5a3776af521b8ddc14a19d1954af64e2960d2397
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-05-21 (Wed, 21 May 2025)

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

  Log Message:
  -----------
  [SCCPSolver] Make getMRVFunctionsTracked return a reference (NFC) (#140851)

This patch makes getMRVFunctionsTracked return a reference.
runIPSCCP, the sole user of getMRVFunctionsTracked, just needs a
read-access to the map.

The missing "&" is most likely an oversight as two "sibling" functions
getTrackedRetVals and getTrackedGlobals return maps by const
reference.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list