[all-commits] [llvm/llvm-project] ffdada: [LifetimeSafety] Add loan expiry analysis (#148712)

Utkarsh Saxena via All-commits all-commits at lists.llvm.org
Wed Jul 23 03:14:51 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ffdada166689172e54bd664ff3e43c824c22c69b
      https://github.com/llvm/llvm-project/commit/ffdada166689172e54bd664ff3e43c824c22c69b
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2025-07-23 (Wed, 23 Jul 2025)

  Changed paths:
    M clang/include/clang/Analysis/Analyses/LifetimeSafety.h
    M clang/lib/Analysis/LifetimeSafety.cpp
    M clang/unittests/Analysis/LifetimeSafetyTest.cpp

  Log Message:
  -----------
  [LifetimeSafety] Add loan expiry analysis (#148712)

This PR adds the `ExpiredLoansAnalysis` class to track which loans have expired. The analysis uses a dataflow lattice (`ExpiredLattice`) to maintain the set of expired loans at each program point.

This is a very light weight dataflow analysis and is expected to reach fixed point in ~2 iterations.
In principle, this does not need a dataflow analysis but is used for convenience in favour of lean code.



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