[llvm] [Analysis] Add Scalable field in MemoryLocation.h (PR #65759)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 14 02:25:25 PDT 2023
================
@@ -110,13 +110,13 @@ static uint64_t getObjectSize(const Value *V, const DataLayout &DL,
Opts.RoundToAlign = RoundToAlign;
Opts.NullIsUnknownSize = NullIsValidLoc;
if (getObjectSize(V, Size, DL, &TLI, Opts))
- return Size;
- return MemoryLocation::UnknownSize;
+ return LocationSize(Size, DL.getTypeAllocSize(V->getType()).isScalable());
----------------
harviniriawan wrote:
I see, ok
https://github.com/llvm/llvm-project/pull/65759
More information about the llvm-commits
mailing list