aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSander de Smalen <sander.desmalen@arm.com>2020-11-11 09:55:43 +0000
committerSander de Smalen <sander.desmalen@arm.com>2020-11-11 10:18:50 +0000
commitb873aba3943c067a5efd5303cbdf5aeb0732cf88 (patch)
treee09fa2f260cc9e1bfd07f6f9faa29599c698cfe0 /clang/lib/Frontend/CompilerInvocation.cpp
parent91ce6fb5a65f75c1b29c898f2cb76e2c5d1ac681 (diff)
downloadllvm-b873aba3943c067a5efd5303cbdf5aeb0732cf88.zip
llvm-b873aba3943c067a5efd5303cbdf5aeb0732cf88.tar.gz
llvm-b873aba3943c067a5efd5303cbdf5aeb0732cf88.tar.bz2
[LoopVectorizer] NFCI: Calculate register usage based on TLI.getTypeLegalizationCost.
This is more accurate than dividing the bitwidth based on the element count by the maximum register size, as it can just reuse whatever has been calculated for legalization of these types. This change is also necessary when calculating register usage for scalable vectors, where the legalization of these types cannot be done based on the widest register size, because that does not take the 'vscale' component into account. Reviewed By: SjoerdMeijer Differential Revision: https://reviews.llvm.org/D91059
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions