[all-commits] [llvm/llvm-project] beda9d: AMDGPU: Skip GetUnderlyingObject check in pointsTo...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Sat May 9 13:12:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: beda9d04c284ab68073c6b7d5a858ee609b5311c
      https://github.com/llvm/llvm-project/commit/beda9d04c284ab68073c6b7d5a858ee609b5311c
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-05-09 (Sat, 09 May 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
    A llvm/test/CodeGen/AMDGPU/aa-points-to-constant-memory.ll

  Log Message:
  -----------
  AMDGPU: Skip GetUnderlyingObject check in pointsToConstantMemory

Check the address space first before searching for the object
definition to save compile time. As an added bonus, this will now
treat casts to constant addrspace as constant.

We also seemed to be missing targeted tests for this, so add a few
missing other cases too.


  Commit: a881dc1103579926f039e81c0d25626ff8a582a9
      https://github.com/llvm/llvm-project/commit/a881dc1103579926f039e81c0d25626ff8a582a9
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-05-09 (Sat, 09 May 2020)

  Changed paths:
    M clang/lib/CodeGen/TargetInfo.cpp

  Log Message:
  -----------
  Fix typo


  Commit: 16295d521e294b27106e51fac29957c1aac8ff89
      https://github.com/llvm/llvm-project/commit/16295d521e294b27106e51fac29957c1aac8ff89
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-05-09 (Sat, 09 May 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    A llvm/test/Transforms/InstCombine/AMDGPU/memcpy-from-constant.ll

  Log Message:
  -----------
  InstCombine: Broaden copy-constant-to-alloca optimization

Consider any constant memory type, not just global constants. AMDGPU
kernel parameters are effectively global constants, but appear as
either reads from an intrinsic derived pointer or function argument.


Compare: https://github.com/llvm/llvm-project/compare/f8b09f7b5203...16295d521e29


More information about the All-commits mailing list