[AArch64][GlobalISel] Add identity combines to post-legal combiner.
authorAmara Emerson <amara@apple.com>
Mon, 26 Jul 2021 18:46:24 +0000 (11:46 -0700)
committerAmara Emerson <amara@apple.com>
Mon, 26 Jul 2021 22:17:11 +0000 (15:17 -0700)
commit172051a1f4b1a007a2dbc46f8efb5e650b016d3b
tree682cfd7eea9d239504ae487980db28171885080a
parentc5d8bd5a35cbd325c6ccd42afa91bad06d261f07
[AArch64][GlobalISel] Add identity combines to post-legal combiner.

We see some shifts of zero emitted during legalization.

Differential Revision: https://reviews.llvm.org/D106816
llvm/lib/Target/AArch64/AArch64Combine.td
llvm/test/CodeGen/AArch64/GlobalISel/arm64-atomic-128.ll
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-combiner-identity.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizercombiner-select.mir
llvm/test/CodeGen/AArch64/fold-global-offsets.ll