[llvm] [LAA] Prepare to handle diff type sizes (NFC) (PR #122318)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 01:23:27 PDT 2025
================
@@ -2194,13 +2210,8 @@ MemoryDepChecker::isDependent(const MemAccessInfo &A, unsigned AIdx,
// Negative distances are not plausible dependencies.
if (SE.isKnownNonPositive(Dist)) {
if (SE.isKnownNonNegative(Dist)) {
- if (HasSameSize) {
- // Write to the same location with the same size.
- return Dependence::Forward;
- }
- LLVM_DEBUG(dbgs() << "LAA: possibly zero dependence difference but "
- "different type sizes\n");
- return Dependence::Unknown;
+ // Write to the same location with the same size.
+ return Dependence::Forward;
----------------
fhahn wrote:
```suggestion
assert(HasSameSize && "accesses must have the same size");
return Dependence::Forward;
```
https://github.com/llvm/llvm-project/pull/122318
More information about the llvm-commits
mailing list