[all-commits] [llvm/llvm-project] eb0740: GlobalISel: Combine G_ADD of G_PTRTOINT to G_PTR_ADD

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Aug 26 05:57:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eb074088c983ce6f255e0e83babdd32a4f2dd457
      https://github.com/llvm/llvm-project/commit/eb074088c983ce6f255e0e83babdd32a4f2dd457
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-08-26 (Wed, 26 Aug 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/AMDGPU/GlobalISel/combine-add-to-ptradd.mir

  Log Message:
  -----------
  GlobalISel: Combine G_ADD of G_PTRTOINT to G_PTR_ADD

This produces less work for addressing mode matching. I think this is
safe since I don't think machine IR is supposed to give the same
aliasing properties as getelementptr in the IR.




More information about the All-commits mailing list