diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-09-03 15:48:33 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-09-03 15:48:39 +0100 |
commit | 5aee2726d8a6cb1698b11574ebb0e0499369a3d2 (patch) | |
tree | 45a2ae49c4d9b2c1cf91706d198257c274ec96b6 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 22e1f66f26b867ec2bb53c8d9ace489e0a54b1a0 (diff) | |
download | llvm-5aee2726d8a6cb1698b11574ebb0e0499369a3d2.zip llvm-5aee2726d8a6cb1698b11574ebb0e0499369a3d2.tar.gz llvm-5aee2726d8a6cb1698b11574ebb0e0499369a3d2.tar.bz2 |
[CostModel][X86] Add CostKinds handling for fdiv ops
This was achieved with an updated version of the 'cost-tables vs llvm-mca' script D103695
As we're using 'typical' worst case values, not all cost entries come from a single CPU - e.g. the latency/throughput from haswell but the size-latency(uops) from zen1/alderlake-e due to 'double pumping'
As the uop count (used for TCK_SizeAndLatency) for divss/divps is typically so low, we need to override isExpensiveToSpeculativelyExecute to ensure we keep fdiv calls behind branches - although for some very recent cpu targets it might not be necessary any more and could be relaxed.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions