diff options
author | Shilei Tian <i@tianshilei.me> | 2023-04-21 00:08:24 -0400 |
---|---|---|
committer | Shilei Tian <i@tianshilei.me> | 2023-04-21 00:08:35 -0400 |
commit | e0ea44720d9bc2a5ec7063eebf79d15b06cc2072 (patch) | |
tree | c58896bc3c76e215d70601e883a235e62f691672 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | c5fc7809e05940674424aaed7dd06c6be0639864 (diff) | |
download | llvm-e0ea44720d9bc2a5ec7063eebf79d15b06cc2072.zip llvm-e0ea44720d9bc2a5ec7063eebf79d15b06cc2072.tar.gz llvm-e0ea44720d9bc2a5ec7063eebf79d15b06cc2072.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions