]> granicus.if.org Git - llvm/commit
[AArch64] Handle ISD::LRINT and ISD::LLRINT
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 May 2019 21:04:29 +0000 (21:04 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 May 2019 21:04:29 +0000 (21:04 +0000)
commit2015c9266833ebae0e42a641252b2b120ef0f77a
tree5e9b30d5cce450394a0037f40c136131aecece0e
parent29f026d977e01fc255284a0bb90afda1435b0e6a
[AArch64] Handle ISD::LRINT and ISD::LLRINT

This patch optimizes ISD::LRINT and ISD::LLRINT to frintx plus
fcvtzs. It currently only handles the scalar version.

Reviewed By: SjoerdMeijer, mstorsjo

Differential Revision: https://reviews.llvm.org/D62018

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361877 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetSelectionDAG.td
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64InstrInfo.td
test/CodeGen/AArch64/llrint-conv.ll
test/CodeGen/AArch64/lrint-conv-win.ll [new file with mode: 0644]
test/CodeGen/AArch64/lrint-conv.ll