aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/COFFImportFile.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2024-07-11 11:40:14 +0100
committerFlorian Hahn <flo@fhahn.com>2024-07-11 11:40:14 +0100
commit67f4968a57789fa07dcdb0c4421e4beeb725a0db (patch)
tree9dc115c0042549725e267e3e57bef948e7abb4a0 /llvm/lib/Object/COFFImportFile.cpp
parent74b933c28e777fdc04e50f5f96e4f7a4ad1e79a6 (diff)
downloadllvm-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