New Pass Manager: PreservedAnalyses and Analysis Cache Invalidation
Analysis Result Persistence in the New Pass Manager The LLVM New Pass Manager (NPM) utilizes a caching mechanism for analysis results to optimize the pipeline. To maintain correctness, passes must explicitly specify which analyses remain valid after an IR transformation by returning a PreservedAnalyses object. When a pass modifies the IR but fails to correct