diff options
author | Florian Hahn <flo@fhahn.com> | 2025-02-14 20:39:52 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-02-14 20:39:52 +0100 |
commit | 9ad83f7fcf95f14d410bd2a301c8851f48dd975d (patch) | |
tree | 9dc5186da2adb5370049556ccb4951daebc4a9e0 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | 0931a2a5a26f4926fc74087017a8a6ba3ab874df (diff) | |
download | llvm-9ad83f7fcf95f14d410bd2a301c8851f48dd975d.zip llvm-9ad83f7fcf95f14d410bd2a301c8851f48dd975d.tar.gz llvm-9ad83f7fcf95f14d410bd2a301c8851f48dd975d.tar.bz2 |
[LAA] Get pointer address space from AddRec (NFC).
Retrieve the address space from the pointer AddRec instead of the IR
pointer value, to prepare to make the IR pointer value optional.
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index 0ee4b83..f6fbb49 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -894,7 +894,7 @@ static bool isNoWrap(PredicatedScalarEvolution &PSE, // If the null pointer is undefined, then a access sequence which would // otherwise access it can be assumed not to unsigned wrap. Note that this // assumes the object in memory is aligned to the natural alignment. - unsigned AddrSpace = Ptr->getType()->getPointerAddressSpace(); + unsigned AddrSpace = AR->getType()->getPointerAddressSpace(); if (!NullPointerIsDefined(L->getHeader()->getParent(), AddrSpace) && (Stride == 1 || Stride == -1)) return true; |