[llvm] [DA] Dependence analysis does not handle array accesses of different sizes (PR #116630)
Ryotaro Kasuga via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 08:15:47 PDT 2025
================
@@ -3625,16 +3621,15 @@ DependenceInfo::depends(Instruction *Src, Instruction *Dst,
break; // The underlying objects alias; test accesses for dependence.
}
- // establish loop nesting levels
- establishNestingLevels(Src, Dst);
- LLVM_DEBUG(dbgs() << " common nesting levels = " << CommonLevels << "\n");
- LLVM_DEBUG(dbgs() << " maximum nesting levels = " << MaxLevels << "\n");
-
- FullDependence Result(Src, Dst, PossiblyLoopIndependent, CommonLevels);
- ++TotalArrayPairs;
+ if (DstLoc.Size != SrcLoc.Size) {
+ // The dependence test gets confused if the size of the memory accesses
+ // differ.
+ LLVM_DEBUG(dbgs() << "can't analyze must alias with different sizes\n");
----------------
kasuga-fj wrote:
Only "must alias"?
https://github.com/llvm/llvm-project/pull/116630
More information about the llvm-commits
mailing list