[all-commits] [llvm/llvm-project] 87f0d5: [AArch64] Fold lsr+bfi in tryBitfieldInsertOpFromOr

Ben Shi via All-commits all-commits at lists.llvm.org
Wed Apr 6 07:02:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 87f0d55304a27ce0f6178eed65d8dad49b5dcfd9
      https://github.com/llvm/llvm-project/commit/87f0d55304a27ce0f6178eed65d8dad49b5dcfd9
  Author: chenglin.bi <chenglin.bi at cixcomputing.com>
  Date:   2022-04-06 (Wed, 06 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
    A llvm/test/CodeGen/AArch64/aarch64-lsr-bfi.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list