[all-commits] [llvm/llvm-project] ef3d17: [GISel] Add combine for constant G_PTR_ADD offsets.

proaditya via All-commits all-commits at lists.llvm.org
Tue Oct 13 17:26:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ef3d17482fff105a1c44fccbbe494ccddafa5661
      https://github.com/llvm/llvm-project/commit/ef3d17482fff105a1c44fccbbe494ccddafa5661
  Author: Aditya Nandakumar <aditya_nandakumar at apple.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

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

  Log Message:
  -----------
  [GISel] Add combine for constant G_PTR_ADD offsets.

https://reviews.llvm.org/D88865

This adds a single combine for GlobalISel to fold:

ptradd (inttoptr C1) C2
Into:

C1 + C2
Additionally, a small test for AArch64 is added.

Patch by pnappa.




More information about the All-commits mailing list