[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)
commit4fe0080984899c35a27e673a098abff183a1c77e
tree5076118ab45da4241304e3741b97db98b5cd6c7b
parente849e59c9de30248fbafae72bae87811bf95d100
[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

llvm-svn: 347893
llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
llvm/test/CodeGen/AArch64/GlobalISel/legalize-ext.mir