[PATCH] D103291: [AArch64][GISel] and+or+shl => bfi

Jon Roelofs via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 15:55:17 PDT 2021


jroelofs created this revision.
jroelofs added reviewers: aemerson, paquette.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
jroelofs requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This fixes a GISEL vs SDAG regression that showed up at -Os in 256.bzip2

In `_getAndMoveToFrontDecode`:

gisel:

  and w9, w0, #0xff
  orr w9, w9, w8, lsl #8

sdag:

  bfi w0, w8, #8, #24


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103291

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/select-bitfield-insert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103291.348407.patch
Type: text/x-patch
Size: 5534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/398f4bb4/attachment.bin>


More information about the llvm-commits mailing list