[AArch64][GlobalISel] Run redundant_sext_inreg in the post-legalizer combiner
authorJessica Paquette <jpaquette@apple.com>
Wed, 17 Feb 2021 23:16:51 +0000 (15:16 -0800)
committerJessica Paquette <jpaquette@apple.com>
Fri, 19 Feb 2021 17:34:47 +0000 (09:34 -0800)
commit8d3442eddb88e2e52bee89f333df0c6cf12e1237
tree948ad9d816a872a3eb623faacb1765c7063214af
parent0ee4bf151c0985027e82ec0036a655d68b4d6c37
[AArch64][GlobalISel] Run redundant_sext_inreg in the post-legalizer combiner

This is to ensure that we can eliminate G_ASSERT_SEXT.

In a follow-up patch, I'm going to make CallLowering emit G_ASSERT_SEXT for
signext parameters.

Differential Revision: https://reviews.llvm.org/D96913
llvm/lib/Target/AArch64/AArch64Combine.td
llvm/test/CodeGen/AArch64/GlobalISel/combine-sext-trunc-sextload.mir
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-redundant-sextinreg.mir [new file with mode: 0644]