[Mlir-commits] [mlir] [mlir] [dataflow] Add a loadAnalysis method to the dataflow analysis (PR #102808)

donald chen llvmlistbot at llvm.org
Mon Aug 12 03:16:09 PDT 2024


cxy-1993 wrote:

> Seems to me that you're inserting hard-coded dependencies between the analysis, when actually I understand it to be more conceptual: that is there can be various analysis implementation providing the "same" information, but from different sources.

Different analyses can indeed produce the same lattice. However, we have some common combinations, such as using ConstantPropagationAnalysis when performing DeadCodeAnalysis, as its results are sufficient for DeadCodeAnalysis. If further analysis is needed, users can still choose to load additional analyses manually. This approach simply provides a set of default dependent analyses for some analyses.

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


More information about the Mlir-commits mailing list