aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorSam Tebbs <samuel.tebbs@arm.com>2021-06-07 13:29:38 +0100
committerSam Tebbs <samuel.tebbs@arm.com>2021-06-21 14:14:09 +0100
commitbbe16b7af2d66d2abcf75ad72af6155d4da964cb (patch)
treea3d4d91bc04f1cccecb760cc9f48948ac561ebf1 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent4684cd543cfa5df04c9242df17a50e74b22b08bc (diff)
downloadllvm-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