[all-commits] [llvm/llvm-project] 94f760: [AArch64] Add tests for merging LDRSWpre-LDR pairs

Zhuojia Shen via All-commits all-commits at lists.llvm.org
Tue Jul 18 09:47:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94f76004d53d4c5fe98d9e5d0dc8292cc04218fa
      https://github.com/llvm/llvm-project/commit/94f76004d53d4c5fe98d9e5d0dc8292cc04218fa
  Author: Zhuojia Shen <chaosdefinition at hotmail.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

  Changed paths:
    M llvm/test/CodeGen/AArch64/ldrpre-ldr-merge.mir

  Log Message:
  -----------
  [AArch64] Add tests for merging LDRSWpre-LDR pairs

This patch adds MIR test cases that test merging an LDRSWpre-LDR
instruction pair into an LDPSWpre instruction.  This optimization is
currently missing and will be added a subsequent patch (D152407), so all
test cases are no merge for now.

Differential Revision: https://reviews.llvm.org/D152564


  Commit: b0093e13fcfdd4eea5bbd7ae57d3d1b82f4135c3
      https://github.com/llvm/llvm-project/commit/b0093e13fcfdd4eea5bbd7ae57d3d1b82f4135c3
  Author: Zhuojia Shen <chaosdefinition at hotmail.com>
  Date:   2023-07-18 (Tue, 18 Jul 2023)

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

  Log Message:
  -----------
  [AArch64] Merge LDRSWpre-LD[U]RSW pair into LDPSWpre

This patch optimizes a pair of LDRSWpre and LDRSWui (or LDURSWi)
instructions into a single LDPSWpre instruction.  This is a missing case
in D99272.

MIR test cases in D152564 are updated to verify the optimization.

Differential Revision: https://reviews.llvm.org/D152407


Compare: https://github.com/llvm/llvm-project/compare/17508cbcc628...b0093e13fcfd


More information about the All-commits mailing list