[PATCH] D152407: [AArch64] Merge LDRSWpre-LDRSWui pair into LDPSWpre.

Zhuojia Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 7 16:18:30 PDT 2023


chaosdefinition created this revision.
chaosdefinition added reviewers: stelios-arm, SjoerdMeijer, dmgreen, fhahn, mcrosier, junbuml, t.p.northover, MatzeB.
Herald added subscribers: StephenFan, hiraditya, kristof.beyls.
Herald added a project: All.
chaosdefinition requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch optimizes a pair of `LDRSWpre` and `LDRSWui` instructions into a single `LDPSWpre` instruction.  This is a missing case in D99272 <https://reviews.llvm.org/D99272>.

An MIR test is added to verify the optimization.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D152407

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
  llvm/test/CodeGen/AArch64/ldrpre-ldr-merge.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152407.529461.patch
Type: text/x-patch
Size: 3789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230607/7fdff561/attachment.bin>


More information about the llvm-commits mailing list