[AArch64] Fold lsr+bfi in tryBitfieldInsertOpFromOr
authorchenglin.bi <chenglin.bi@cixcomputing.com>
Wed, 6 Apr 2022 13:17:42 +0000 (21:17 +0800)
committerBen Shi <ben.shi@streamcomputing.com>
Wed, 6 Apr 2022 14:02:31 +0000 (22:02 +0800)
commit87f0d55304a27ce0f6178eed65d8dad49b5dcfd9
treef3576c8024fc3404406e4a0489bf890a1727e563
parent1dc1d5a0d2d5059736828c626e230520adf39392
[AArch64] Fold lsr+bfi in tryBitfieldInsertOpFromOr

In tryBitfieldInsertOpFromOr, if the new created LSR Node's source
is LSR with Imm shift, try to fold them.

Fixes https://github.com/llvm/llvm-project/issues/54696

Reviewed By: efriedma, benshi001

Differential Revision: https://reviews.llvm.org/D122915
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/test/CodeGen/AArch64/aarch64-lsr-bfi.ll [new file with mode: 0644]