diff options
author | Rosie Sumpter <rosie.sumpter@arm.com> | 2021-12-06 11:27:31 +0000 |
---|---|---|
committer | Rosie Sumpter <rosie.sumpter@arm.com> | 2022-01-12 13:34:12 +0000 |
commit | 552eb372cb8198c64caf13da34ca70af894485c8 (patch) | |
tree | 671bb0e1bffba8f2ec8dfe55a1c8bb570a644c72 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | 4b85800bfd6ca6c3ecedf68ffbba6c3f2bc9c8ae (diff) | |
download | llvm-552eb372cb8198c64caf13da34ca70af894485c8.zip llvm-552eb372cb8198c64caf13da34ca70af894485c8.tar.gz llvm-552eb372cb8198c64caf13da34ca70af894485c8.tar.bz2 |
[LoopVectorize] Pass a vector type to isLegalMaskedGather/Scatter
This is required to query the legality more precisely in the LoopVectorizer.
This adds another TTI function named 'forceScalarizeMaskedGather/Scatter'
function to work around the hack introduced for MVE, where
isLegalMaskedGather/Scatter would return an answer by second-guessing
where the function was called from, based on the Type passed in (vector
vs scalar). The new interface makes this explicit. It is also used by
X86 to check for vector widths where gather/scatters aren't profitable
(or don't exist) for certain subtargets.
Differential Revision: https://reviews.llvm.org/D115329
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions