Skip to content

Harden lifetime analysis (workstream 3) #154506

@usx95

Description

@usx95

Measure and optimize compile-time performance

  • Benchmarking: Measure the analysis's impact on the compiler.

Deliverable: Performance reports on compile-time and memory usage overhead, tested against microbenchmarks, known pathological cases (e.g., cyclic pointer assignments in loops), and real-world codebases like LLVM and SQLite.

  • Optimization: Analysis must be efficient enough to be ready for default enablement.

Deliverable: A compile-time overhead targeting a maximum of 5%. This will be achieved through bailout strategies (like capping iterations in the dataflow analysis for overly large functions) and optimizing core data structures (e.g., using persistent maps or tries for loan sets).

Bug board for compile-times: Lifetime Safety in Clang (view)

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:analysisclang:temporal-safetyIssue/FR relating to the lifetime analysis in Clang (-Wdangling, -Wreturn-local-addr)metaissueIssue to collect references to a group of similar or related issues.slow-compile

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions