[AArch64][GlobalISel] combine and + [la]sr => ubfx
authorJon Roelofs <jonathan_roelofs@apple.com>
Thu, 14 Oct 2021 19:15:35 +0000 (12:15 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Mon, 18 Oct 2021 17:33:01 +0000 (10:33 -0700)
commit1300677f976e9975c21fd7bc4aa4e38e1bffeb27
tree1b19872ae8e17ec9b97096f46fbe656c25d1efda
parent74c4d44d47b282769f6584153e9b433e8e5fa671
[AArch64][GlobalISel] combine and + [la]sr => ubfx

https://godbolt.org/z/h8ejrG4hb

rdar://83597585

Differential Revision: https://reviews.llvm.org/D111839
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/form-bitfield-extract-from-shr-and.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/merge-stores-truncating.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/bswap.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/fshr.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.ubfe.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/lshr.ll