[PATCH] D144749: [AbstractAttributor] Set up a dedicated simplification call back map for `GlobalVariable`

Shilei Tian via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 10:25:47 PST 2023


tianshilei1992 created this revision.
Herald added subscribers: ormris, okura, kuter, hiraditya.
Herald added a project: All.
tianshilei1992 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.

Currently we don't check call backs for global variable simplification.
What's more, the only way that we can register a simplification call back for
global variable is through its initializer (essentially a `Constant *`). It might
not correspond to the right global variable. In this patch, we set up a dedicated
simplification map for `GlobalVariable`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D144749

Files:
  llvm/include/llvm/Transforms/IPO/Attributor.h
  llvm/lib/Transforms/IPO/Attributor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144749.500251.patch
Type: text/x-patch
Size: 5014 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230224/f265754c/attachment.bin>


More information about the llvm-commits mailing list