aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorSjoerd Meijer <smeijer@nvidia.com>2022-12-16 09:20:37 +0000
committerSjoerd Meijer <smeijer@nvidia.com>2022-12-16 15:38:17 +0000
commit5c94faba0bba628aaa5c1f034ef04acd40f7adb2 (patch)
treed2fa7a259e1933bca837718c785aa8fe12e6dc06 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent2e5fe721724446265d1ea48267b6a34d33fca14b (diff)
downloadllvm-5c94faba0bba628aaa5c1f034ef04acd40f7adb2.zip
llvm-5c94faba0bba628aaa5c1f034ef04acd40f7adb2.tar.gz
llvm-5c94faba0bba628aaa5c1f034ef04acd40f7adb2.tar.bz2
[TTI] [AArch64] getMemoryOpCost for ptr types
Opaque ptr types have a size in bits of 0. The legalised type is an i64 or vector of i64s, which do have a size. Because of this difference in size, target hook getMemoryOpCost modelled stores of ptr types as extending/truncating load/stores. Now we just check for opaque ptr types and return the legalised cost. This makes stores of pointers cheaper, and as a result we now SLP vectorise the changed test case. Differential Revision: https://reviews.llvm.org/D140193
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions