[llvm] [LAA] Prepare to handle diff type sizes (NFC) (PR #122318)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 05:54:19 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;
----------------
Meinersbur wrote:
The [coding standard](https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-simple-single-statement-bodies-of-if-else-loop-statements) should settle it:
<img width="586" height="153" alt="image" src="https://github.com/user-attachments/assets/e2fc3684-7208-4233-9147-42963f65faf8" />
https://github.com/llvm/llvm-project/pull/122318
More information about the llvm-commits
mailing list