diff options
author | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2021-06-08 10:49:22 +0100 |
---|---|---|
committer | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2021-06-08 12:07:36 +0100 |
commit | 5db52751a594410d0166d606b305b01a03f0ca3f (patch) | |
tree | d037e5c300b38786f3f143b9bc22c5c371f08db1 /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | d54e7b731e662e3ec19c590172c9827e3e184829 (diff) | |
download | llvm-5db52751a594410d0166d606b305b01a03f0ca3f.zip llvm-5db52751a594410d0166d606b305b01a03f0ca3f.tar.gz llvm-5db52751a594410d0166d606b305b01a03f0ca3f.tar.bz2 |
[CostModel] Return an invalid cost for memory ops with unsupported types
Fixes getTypeConversion to return `TypeScalarizeScalableVector` when a scalable vector
type cannot be legalized by widening/splitting. When this is the method of legalization
found, getTypeLegalizationCost will return an Invalid cost.
The getMemoryOpCost, getMaskedMemoryOpCost & getGatherScatterOpCost functions already call
getTypeLegalizationCost and will now also return an Invalid cost for unsupported types.
Reviewed By: sdesmalen, david-arm
Differential Revision: https://reviews.llvm.org/D102515
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions