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.
Paths
| Differential D96913
[AArch64][GlobalISel] Run redundant_sext_inreg in the post-legalizer combiner ClosedPublic Authored by paquette on Feb 17 2021, 3:39 PM.
Details Summary 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.
Diff Detail
Event TimelineHerald added subscribers: danielkiss, hiraditya, kristof.beyls, rovka. · View Herald TranscriptFeb 17 2021, 3:39 PM
This revision is now accepted and ready to land.Feb 18 2021, 4:51 PM Closed by commit rG8d3442eddb88: [AArch64][GlobalISel] Run redundant_sext_inreg in the post-legalizer combiner (authored by paquette). · Explain WhyFeb 19 2021, 9:36 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 325017 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
|
What happens if we don't restrict the combiner to this?