Files
clang-p2996/llvm/lib/Transforms/IPO/Attributor.cpp
Shilei Tian e0ea44720d [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
2023-04-21 00:08:35 -04:00

138 KiB