[all-commits] [llvm/llvm-project] a501d0: [Attributor] Only manifest pointer operand for `St...

Shilei Tian via All-commits all-commits at lists.llvm.org
Fri Sep 8 12:24:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a501d06fcbe97cf5c577d23fbdb9272ba7d6fa83
      https://github.com/llvm/llvm-project/commit/a501d06fcbe97cf5c577d23fbdb9272ba7d6fa83
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2023-09-08 (Fri, 08 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/test/Transforms/Attributor/address_space_info.ll

  Log Message:
  -----------
  [Attributor] Only manifest pointer operand for `StoreInst` in `AAAddressSpace` (#65708)

`AAAddressSpace` currently only works for `LoadInst` and `StoreInst`
currently. For `StoreInst`, the corresponding use can be the pointer
operand, or value operand, or both. When it is used as value operand, it
can prevent `AMDGPUPromoteAlloca` from optimization in certain cases.
This patch changes the manifest method such that only pointer operand
will be rewritten.




More information about the All-commits mailing list