[llvm] [DA] Dependence analysis does not handle array accesses of different sizes (PR #116630)
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 17:58:55 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);
----------------
sebpop wrote:
No, I can't use const here: `SE->getSCEV` takes a `Value*`:
```
const llvm::SCEV* llvm::ScalarEvolution::getSCEV(llvm::Value*)
```
https://github.com/llvm/llvm-project/pull/116630
More information about the llvm-commits
mailing list