Skip to content

Commit 1b92628

Browse files
committed
LAA: address review
1 parent 94ef465 commit 1b92628

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

llvm/lib/Analysis/LoopAccessAnalysis.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,14 +1980,9 @@ MemoryDepChecker::getDependenceDistanceStrideAndSize(
19801980
TypeSize AStoreSz = DL.getTypeStoreSize(ATy),
19811981
BStoreSz = DL.getTypeStoreSize(BTy);
19821982

1983-
// Fail early if either store size is scalable.
1984-
if (AStoreSz.isScalable() || BStoreSz.isScalable())
1985-
return MemoryDepChecker::Dependence::Unknown;
1986-
19871983
// If store sizes are not the same, set TypeByteSize to zero, so we can check
19881984
// it in the caller.
1989-
uint64_t ASz = alignTo(AStoreSz, DL.getABITypeAlign(ATy)),
1990-
BSz = alignTo(BStoreSz, DL.getABITypeAlign(BTy)),
1985+
uint64_t ASz = DL.getTypeAllocSize(ATy), BSz = DL.getTypeAllocSize(BTy),
19911986
TypeByteSize = AStoreSz == BStoreSz ? BSz : 0;
19921987

19931988
uint64_t StrideAScaled = std::abs(StrideAPtrInt) * ASz;

0 commit comments

Comments
 (0)