OSDN Git Service

[GlobalISel] LegalizationArtifactCombiner: Combine aext([asz]ext x) -> [asz]ext x
authorVolkan Keles <vkeles@apple.com>
Thu, 29 Nov 2018 18:19:24 +0000 (18:19 +0000)
committerVolkan Keles <vkeles@apple.com>
Thu, 29 Nov 2018 18:19:24 +0000 (18:19 +0000)
commit1efb7b466e6a08f3a455afdadeca7faa4db552cf
treec99984cc7d210165066729ff9f6a3fe4dc5fc196
parentfc5de306107b91b0e5e606d599f7bba323ca205f
[GlobalISel] LegalizationArtifactCombiner: Combine aext([asz]ext x) -> [asz]ext x

Summary:
Replace `aext([asz]ext x)` with `aext/sext/zext x` in order to
reduce the number of instructions generated to clean up some
legalization artifacts.

Reviewers: aditya_nandakumar, dsanders, aemerson, bogner

Reviewed By: aemerson

Subscribers: rovka, kristof.beyls, javed.absar, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347893 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
test/CodeGen/AArch64/GlobalISel/legalize-ext.mir