[all-commits] [llvm/llvm-project] b6598b: [AArch64][GlobalISel] Fold a chain of two G_PTR_AD...

AE via All-commits all-commits at lists.llvm.org
Tue Jan 7 14:13:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b6598bcf4b81ed8fb66a7c576a81e422750b9329
      https://github.com/llvm/llvm-project/commit/b6598bcf4b81ed8fb66a7c576a81e422750b9329
  Author: Amara Emerson <aemerson at apple.com>
  Date:   2020-01-07 (Tue, 07 Jan 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
    M llvm/include/llvm/Target/GlobalISel/Combine.td
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    A llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-ptradd-chain.mir

  Log Message:
  -----------
  [AArch64][GlobalISel] Fold a chain of two G_PTR_ADDs of constant offsets.

E.g.
%addr1 = G_PTR_ADD %base, G_CONSTANT 20
%addr2 = G_PTR_ADD %addr1, G_CONSTANT 8
  -->
%addr2 = G_PTR_ADD %base, G_CONSTANT 28

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




More information about the All-commits mailing list