[PATCH] D103903: [ARM] Transform a fixed-point to floating-point conversion into a VCVT_fix
Sam Tebbs via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 8 08:53:37 PDT 2021
samtebbs created this revision.
samtebbs added reviewers: SjoerdMeijer, NickGuy, dmgreen.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
samtebbs requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103903
Files:
llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
llvm/test/CodeGen/ARM/arm_q15_to_float_autovec.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103903.350619.patch
Type: text/x-patch
Size: 55545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210608/020ccb96/attachment.bin>
More information about the llvm-commits
mailing list