diff options
author | Sam Tebbs <samuel.tebbs@arm.com> | 2021-06-07 13:29:38 +0100 |
---|---|---|
committer | Sam Tebbs <samuel.tebbs@arm.com> | 2021-06-21 14:14:09 +0100 |
commit | bbe16b7af2d66d2abcf75ad72af6155d4da964cb (patch) | |
tree | a3d4d91bc04f1cccecb760cc9f48948ac561ebf1 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 4684cd543cfa5df04c9242df17a50e74b22b08bc (diff) | |
download | llvm-bbe16b7af2d66d2abcf75ad72af6155d4da964cb.zip llvm-bbe16b7af2d66d2abcf75ad72af6155d4da964cb.tar.gz llvm-bbe16b7af2d66d2abcf75ad72af6155d4da964cb.tar.bz2 |
[ARM] Transform a fixed-point to floating-point conversion into a VCVT_fix
Conversion from a fixed-point number to a floating-point number is done by
multiplying the fixed-point number by 2^(-n) where n is the number of
fractional bits. Currently this is lowered to a vcvt
(integer to floating-point) then a vmul, but it can instead be lowered
directly to a vcvt (fixed-point to floating-point). This patch enables
such transformations as long as the multiplication factor is a power of 2.
Differential Revision: https://reviews.llvm.org/D103903
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions