[flang-commits] [flang] [Flang]Add support for inlining hlfir.assign operation where both LHS and RHS are slices of the same array (PR #204532)
via flang-commits
flang-commits at lists.llvm.org
Mon Jun 22 02:38:41 PDT 2026
================
@@ -193,6 +194,56 @@ ArraySectionAnalyzer::analyze(mlir::Value ref1, mlir::Value ref2,
return SlicesOverlapKind::Unknown;
}
+mlir::Value ArraySectionAnalyzer::genRuntimeDisjointnessCheck(
+ mlir::Location loc, mlir::OpBuilder &builder, mlir::Value lhsRef,
+ mlir::Value rhsRef) {
----------------
jeanPerier wrote:
Have you considered generating a more generic checks that does not require the RHS/LHS to be the same (i.e, something that compares the memory address of the first and last elements)?
https://github.com/llvm/llvm-project/pull/204532
More information about the flang-commits
mailing list