[llvm] [LAA] Prepare to handle diff type sizes (NFC) (PR #122318)
Igor Kirillov via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 04:53:49 PDT 2025
================
@@ -2186,13 +2202,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;
----------------
igogo-x86 wrote:
For single-line bodies, we may omit the braces
https://github.com/llvm/llvm-project/pull/122318
More information about the llvm-commits
mailing list