aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2022-04-27 09:30:00 +0100
committerDavid Green <david.green@arm.com>2022-04-27 09:30:00 +0100
commit4a8c13a6f42e9c58af64421790509cc58208859b (patch)
treed3bd029c244a968f0895bbeed69b3838f167bb41 /flang/lib/Frontend/CompilerInvocation.cpp
parentc1e94591bcc95f36da0372080c455b09af8c46fd (diff)
downloadllvm-4a8c13a6f42e9c58af64421790509cc58208859b.zip
llvm-4a8c13a6f42e9c58af64421790509cc58208859b.tar.gz
llvm-4a8c13a6f42e9c58af64421790509cc58208859b.tar.bz2
[CostModel] Add basic fptoi_sat costs
This adds some basic fptosi_sat and fptoui_sat target independent cost modelling. The fptosi_sat is modelled as a fmin/fmax to saturate the value, followed by a fp convert. The signed values then have an additional fcmp+select for handling Nan correctly. The AArch64/Arm costs may be more incorrect, as the instruction exist natively. This can be fixed with target specific cost updates. Differential Revision: https://reviews.llvm.org/D124269
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions