diff options
author | David Green <david.green@arm.com> | 2021-12-01 10:25:52 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2021-12-01 10:25:52 +0000 |
commit | 6d41de380f223c8da02fd4d6a7f7dd1e7a404a24 (patch) | |
tree | 2f9e10b2374f6de8bee01f8908aadf3a80da95fa /llvm/lib/Support | |
parent | 59788422609433c50c3d3c16ca531fa56b9acb4f (diff) | |
download | llvm-6d41de380f223c8da02fd4d6a7f7dd1e7a404a24.zip llvm-6d41de380f223c8da02fd4d6a7f7dd1e7a404a24.tar.gz llvm-6d41de380f223c8da02fd4d6a7f7dd1e7a404a24.tar.bz2 |
[ARM] Teach getIntImmCostInst about the cost of saturating fp converts
Given a min(max(fptosi, INT_MIN), INT_MAX) with the correct constants,
we can now generate a fptosi.sat. But in the arm backend, the constant
can be treated as high cost, pulling it out of the basic block in a way
that the DAG combine can no longer see it. This teaches it again that it
is a low cost constant, not worth hoisting out.
Differential Revision: https://reviews.llvm.org/D114380
Diffstat (limited to 'llvm/lib/Support')
0 files changed, 0 insertions, 0 deletions