diff options
author | Sanjay Patel <spatel@rotateright.com> | 2019-04-24 22:28:58 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2019-04-24 22:28:58 +0000 |
commit | 6f41bf948b5f34aec8f03ec0fbb1f6eabea26984 (patch) | |
tree | 28e3e6a9603d78b2e2f366f01385f0eb0ce5d78f /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 8372b467f18da0ff92ff59ba878365e8f4790212 (diff) | |
download | bcm5719-llvm-6f41bf948b5f34aec8f03ec0fbb1f6eabea26984.tar.gz bcm5719-llvm-6f41bf948b5f34aec8f03ec0fbb1f6eabea26984.zip |
[DAGCombiner] scale repeated FP divisor by splat factor
If we have a vector FP division with a splatted divisor, use the existing transform
that converts 'x/y' into 'x * (1.0/y)' to allow more conversions. This can then
potentially be converted into a scalar FP division by existing combines (rL358984)
as seen in the tests here.
That can be a potentially big perf difference if scalar fdiv has better timing
(including avoiding possible frequency throttling for vector ops).
Differential Revision: https://reviews.llvm.org/D61028
llvm-svn: 359147
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions