diff options
author | Florian Hahn <flo@fhahn.com> | 2024-07-11 11:40:14 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-07-11 11:40:14 +0100 |
commit | 67f4968a57789fa07dcdb0c4421e4beeb725a0db (patch) | |
tree | 9dc115c0042549725e267e3e57bef948e7abb4a0 /llvm/lib/Object/COFFImportFile.cpp | |
parent | 74b933c28e777fdc04e50f5f96e4f7a4ad1e79a6 (diff) | |
download | llvm-67f4968a57789fa07dcdb0c4421e4beeb725a0db.zip llvm-67f4968a57789fa07dcdb0c4421e4beeb725a0db.tar.gz llvm-67f4968a57789fa07dcdb0c4421e4beeb725a0db.tar.bz2 |
[LV] Skip cost for ZExt/SExts that will be removed by truncating ops.
If an extend is truncated, it will be removed if the result type is <=
the source type, as there is nothing to extend. Return a cost of 0.
This was caught by the first step to perform cost-modeling based on
VPlan (b841e2e), as the legacy cost model would query the cost of an
invalid extend, while the extend has been folded away by VPlan
transforms.
Fixes https://github.com/llvm/llvm-project/issues/98413.
Diffstat (limited to 'llvm/lib/Object/COFFImportFile.cpp')
0 files changed, 0 insertions, 0 deletions