aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorBrendon Cahoon <bcahoon@quicinc.com>2021-09-13 19:04:00 -0500
committerKrzysztof Parzyszek <kparzysz@quicinc.com>2021-09-13 19:04:59 -0500
commit42dace9c5b5ea059e42aaf2ee201ad9da9dc8535 (patch)
tree14e32ae796c825a3051812f7eb6c7fd0916609e3 /llvm/lib/Support/APInt.cpp
parenta72763af67a079a326a067d16443a747a8a9feb5 (diff)
downloadllvm-42dace9c5b5ea059e42aaf2ee201ad9da9dc8535.zip
llvm-42dace9c5b5ea059e42aaf2ee201ad9da9dc8535.tar.gz
llvm-42dace9c5b5ea059e42aaf2ee201ad9da9dc8535.tar.bz2
[Hexagon] Use getTypeAllocSize to compute difference between objects
The code was using getTypeStoreSize to calculate the difference between consecutive objects. The calculation was incorrect due to padding that is added between consecutive objects. The getTypeAllocSize includes the padding amount. For example, if the type is [19 x i8], the difference between consecutive objects is 32 bytes, not 19 bytes. A second case for getTypeAllocSize is needed when computing the pointer values for the vector accesses. The calculation needs to account for the padding as well. Differential Revision: https://reviews.llvm.org/D109403
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
0 files changed, 0 insertions, 0 deletions