[PATCH] D138646: [AAPointerInfo] track multiple constant offsets for each use

Sameer Sahasrabuddhe via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 24 02:39:26 PST 2022


sameerds created this revision.
Herald added subscribers: kosarev, ormris, okura, jdoerfert, kuter, kerbowa, mgrang, hiraditya, jvesely.
Herald added a project: All.
sameerds requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

An expression of the form `gep(base, select(pred, const1, const2))` can result
in a set of offsets instead of just one. PointerInfo can now track these sets
instead of conservatively modeling them as Unknown.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138646

Files:
  llvm/include/llvm/Transforms/IPO/Attributor.h
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/CodeGen/AMDGPU/attributor-through-select.ll
  llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138646.477715.patch
Type: text/x-patch
Size: 42048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221124/e27987a6/attachment-0001.bin>


More information about the llvm-commits mailing list