[llvm] [DA] Dependence analysis does not handle array accesses of different sizes (PR #116630)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 7 06:58:24 PST 2025
================
@@ -3632,6 +3635,8 @@ DependenceInfo::depends(Instruction *Src, Instruction *Dst,
unsigned Pairs = 1;
SmallVector<Subscript, 2> Pair(Pairs);
+ Value *SrcPtr = getLoadStorePointerOperand(Src);
+ Value *DstPtr = getLoadStorePointerOperand(Dst);
----------------
nikic wrote:
Can you use `const Value *SrcPtr = LocA.Value;` here?
https://github.com/llvm/llvm-project/pull/116630
More information about the llvm-commits
mailing list