OSDN Git Service

GlobalISel: refactor legalization of G_INSERT.
authorTim Northover <tnorthover@apple.com>
Mon, 6 Mar 2017 18:23:04 +0000 (18:23 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 6 Mar 2017 18:23:04 +0000 (18:23 +0000)
commit2146bf29cd205015d676d3f3b080d4acb7c71705
tree420666c36fe76c2d5c022f5adfd277bc54071b0e
parentf4758b9100d341e932b69e4b571a055343e9023d
GlobalISel: refactor legalization of G_INSERT.

Now that G_INSERT instructions can only insert one register, this code was
overly general. In another direction it didn't handle registers that crossed
split boundaries properly, which needed to be fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297042 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
test/CodeGen/AArch64/GlobalISel/legalize-inserts.mir