[clang] [LifetimeSafety] Run analysis in post-order of CallGraph for better annotation propagation (PR #174178)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 10:07:28 PST 2026


================
@@ -505,6 +505,8 @@ LANGOPT(EnableLifetimeSafety, 1, 0, NotCompatible, "Experimental lifetime safety
 
 LANGOPT(EnableLifetimeSafetyInference, 1, 0, NotCompatible, "Experimental lifetime safety inference analysis for C++")
 
+LANGOPT(EnableLifetimeSafetyInferencePostOrder, 1, 0, NotCompatible, "Experimental lifetime safety inference analysis in post-order for C++")
+
----------------
usx95 wrote:

nit: Add a TODO to remove this and make this the default mode for this analysis. I would just wait for few performance measurements before completely removing this option.

https://github.com/llvm/llvm-project/pull/174178


More information about the cfe-commits mailing list