[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:48 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) {
----------------
kasuga-fj wrote:

Don't we need to check if they are precise or not (with calling `isPrecise`)?

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


More information about the llvm-commits mailing list