[all-commits] [llvm/llvm-project] e0ea44: [Attributor] Set up a dedicated simplification cal...
Shilei Tian via All-commits
all-commits at lists.llvm.org
Thu Apr 20 21:08:47 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0ea44720d9bc2a5ec7063eebf79d15b06cc2072
https://github.com/llvm/llvm-project/commit/e0ea44720d9bc2a5ec7063eebf79d15b06cc2072
Author: Shilei Tian <i at tianshilei.me>
Date: 2023-04-21 (Fri, 21 Apr 2023)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Attributor.h
M llvm/lib/Transforms/IPO/Attributor.cpp
Log Message:
-----------
[Attributor] Set up a dedicated simplification call back map for `GlobalVariable`
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`.
Reviewed By: jdoerfert
Differential Revision: https://reviews.llvm.org/D144749
More information about the All-commits
mailing list