OSDN Git Service

[GlobalISel] Refactor Legalizer helpers for libcalls
authorDiana Picus <diana.picus@linaro.org>
Wed, 5 Jul 2017 12:57:24 +0000 (12:57 +0000)
committerDiana Picus <diana.picus@linaro.org>
Wed, 5 Jul 2017 12:57:24 +0000 (12:57 +0000)
commitf1715a330a55daff9d4d53ddebd20d47ac0c07a5
tree2cd6459f46679dee18b9a583ee9e599ec2f3cf35
parent8b755a3a21e4a1a4e67216828bc1a11ef13174d1
[GlobalISel] Refactor Legalizer helpers for libcalls

We used to have a helper that replaced an instruction with a libcall.
That turns out to be too aggressive, since sometimes we need to replace
the instruction with at least two libcalls. Therefore, change our
existing helper to only create the libcall and leave the instruction
removal as a separate step. Also rename the helper accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307149 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
lib/Target/ARM/ARMLegalizerInfo.cpp