llvm-project
2f3c61e3 - [MLIR] Implement mayHaveNonZeroOffset class

Commit
47 days ago
[MLIR] Implement mayHaveNonZeroOffset class Generic MLIR analysis for alias is not enough as it has no information for an offset alias. For example, without this patch, CIR ptr_stride ptr, 0 and ptr_stride ptr, 1 are considered as MustAlias as they uses the same base. However, there is still a chance for us to do precise alias analysis and declare not alias by its implementation. As a result, we provide a mayHaveNonZeroOffset interface method and downgrade to MayAlias to give the underlying Dialect implementation a chance to do AliasAnalysis.
Author
Parents
Loading